/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* 内容保护 - 禁用文本选择 */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 允许输入框和文本域的文本选择 */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

:root {
  /* 基础颜色 */
  --primary-color: #3b82f6;          /* 主色 - 蓝色 */
  --primary-dark: #2563eb;         /* 主色深色 */
  --primary-light: #dbeafe;        /* 主色浅色 */
  
  --secondary-color: #ef4444;      /* 次要色 - 红色 */
  --secondary-dark: #dc2626;       /* 次要色深色 */
  --secondary-light: #fee2e2;      /* 次要色浅色 */
  
  --accent-color: #8b5cf6;         /* 强调色 - 紫色 */
  --accent-dark: #7c3aed;         /* 强调色深色 */
  --accent-light: #ede9fe;        /* 强调色浅色 */
  
  /* 状态颜色 */
  --success-color: #10b981;       /* 成功 - 绿色 */
  --success-dark: #059669;       /* 成功深色 */
  --success-light: #dcfce7;      /* 成功浅色 */
  
  --warning-color: #f59e0b;       /* 警告 - 橙色 */
  --warning-dark: #d97706;       /* 警告深色 */
  --warning-light: #fef3c7;      /* 警告浅色 */
  
  --info-color: #3b82f6;         /* 信息 - 蓝色 */
  --info-dark: #2563eb;         /* 信息深色 */
  --info-light: #dbeafe;        /* 信息浅色 */
  
  /* 背景和文本 */
  --bg-light: #f9fafb;           /* 浅背景 */
  --bg-medium: #f3f4f6;         /* 中等背景 */
  --bg-dark: #e5e7eb;           /* 深背景 */
  
  --text-primary: #1f2937;      /* 主要文本 */
  --text-secondary: #6b7280;    /* 次要文本 */
  --text-tertiary: #9ca3af;     /* 三级文本 */
  --text-disabled: #d1d5db;     /* 禁用文本 */
  
  /* 边框 */
  --border-color: #e5e7eb;      /* 边框颜色 */
  --border-dark: #d1d5db;       /* 深边框 */
  
  /* 阴影 */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 圆角 */
  --radius-sm: 4px;              /* 小圆角 */
  --radius-md: 8px;              /* 中圆角 */
  --radius-lg: 12px;             /* 大圆角 */
  --radius-full: 9999px;         /* 全圆角 */
}

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

/* 字体抗锯齿 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   工具类（补充 Tailwind 风格缺失定义）
   ============================================= */
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.cursor-pointer { cursor: pointer; }

.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.min-w-full { min-width: 100%; }
.w-24 { width: 6rem; }  .h-24 { height: 6rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-32 { width: 8rem; } .w-40 { width: 10rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-0.5 { margin-top: 0.125rem; } .mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-20 { margin-top: 5rem; }
.mr-2 { margin-right: 0.5rem; } .mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; } .ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pl-4 { padding-left: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-24 { padding-top: 6rem; }
.pr-8 { padding-right: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.rounded { border-radius: 0.375rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* 列表样式 */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.border { border: 1px solid #e5e7eb; }
.border-l-4 { border-left-width: 4px; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-pink-200 { border-color: #fbcfe8; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-500 { border-color: #22c55e; }
.border-purple-500 { border-color: #8b5cf6; }
.border-yellow-500 { border-color: #eab308; }
.border-2 { border-width: 2px; }
.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-500 { background: #3b82f6; }
.bg-blue-600 { background: #2563eb; }
.bg-green-50 { background: #f0fdf4; }
.bg-pink-50 { background: #fdf2f8; }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-200 { color: #e5e7eb; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-pink-500 { color: #ec4899; }
.text-pink-600 { color: #db2777; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991c1c; }
.text-yellow-800 { color: #854d0e; }
.text-purple-500 { color: #8b5cf6; }
.text-orange-500 { color: #f97316; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239,246,255,0)); }

.from-green-50 { --tw-gradient-from: #f0fdf4; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240,253,244,0)); }
.to-emerald-50 { --tw-gradient-to: #ecfdf5; }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.transition { transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-blue-100:hover { background: #dbeafe; }

.hover\:bg-blue-50:hover { background: #eff6ff; }
.hover\:bg-blue-700:hover { background: #1d4ed8; }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.hover\:bg-pink-100:hover { background: #fce7f3; }
.hover\:bg-white\/20:hover { background: rgba(255,255,255,0.2); }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-500:hover { color: #3b82f6; }
.hover\:text-green-600:hover { color: #16a34a; }
.hover\:text-pink-600:hover { color: #db2777; }

/* grid 工具 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* 响应式工具 */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
  .lg\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
}
@media (max-width: 640px) {
  .sm\:flex-row { flex-direction: column; }
}

/* 图片响应式 */
img { max-width: 100%; height: auto; }

/* 全局交互元素丝滑过渡 */
a, button, .nav-item, .dropdown-item, .back-to-top, .theme-toggle, .hamburger, .copy-addr, .btn-primary, .btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: #fff;
}

/* =============================================
   视频背景（放在你准备好的 bg.mp4 即可生效）
   ============================================= */
.bg-video {
   position: fixed;
   top: 0; left: 0;
   width: 100%; height: 100%;
   object-fit: cover;
   z-index: 0;
   pointer-events: none;
 }
 .bg-video-overlay {
   position: fixed;
   top: 0; left: 0;
   width: 100%; height: 100%;
   background: rgba(0,0,0,0.35);
   z-index: 1;
   pointer-events: none;
 }
 /* 首页英雄区加深叠加 */
 body.index-page .bg-video-overlay {
   background: rgba(0,0,0,0.5);
 }

/* 主页特殊样式（视频背景已由 bg-video 提供） */
body.index-page {
  background: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 加载指示器样式 - 已移除无效的外部引用 */

/* 导航栏样式 */
.navbar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-brand {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-brand img {
  height: 24px;
  width: 24px;
  vertical-align: middle;
}

.nav-brand span {
  font-weight: bold;
  font-size: 16px;
  color: #213547;
  line-height: 24px;
}

/* 优化导航链接间距 */
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #3c3c43;
  transition: color 0.25s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 4px;
}

/* 导航栏滚动效果 - 使用 .nav-scrolled (JS 动态添加) */

/* 下拉菜单箭头图标大小调整 */
.dropdown .fas.fa-chevron-down {
  font-size: 14px;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e2e2e3;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 12px 0;
  z-index: 9999;
  margin-top: 8px;
  overflow: hidden;
}

/* 改进的悬停交互 - 解决鼠标离开问题 */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
  z-index: 9998;
}

/* 双重悬停规则确保菜单稳定性 */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* 添加过渡动画 */
.dropdown-content {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #3c3c43;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

/* 确保链接可点击 */
.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
}

/* 强制链接可点击 */
.dropdown-item a,
.dropdown-item {
  pointer-events: auto;
}

/* 防止被其他元素遮挡 */
.dropdown-content {
  z-index: 9999;
}

.nav-icons {
  flex: 0 0 180px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

/* 搜索框样式优化 */
.search-box {
  background: #f6f6f7;
  border: 1px solid #e2e2e3;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 120px;
}

.search-box:hover {
  border-color: var(--primary-color);
  background: #f8f9fa;
}

.search-box i {
  margin-right: 8px;
  color: #6b7280;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.icon-btn {
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s;
  font-size: 16px;
}

.icon-btn:hover {
  color: #000;
}

/* 文档页面样式 */
.doc-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.doc-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.doc-section p {
  line-height: 1.6;
  color: #4b5563;
}

.doc-section ul {
  list-style: none;
  padding-left: 0;
}

.doc-section li {
  margin-bottom: 1rem;
}

/* 复选框样式 */
.check-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #f3f4f6;
  margin-right: 12px;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* 面包屑导航 */
.breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #3b82f6;
}

/* 元信息行 */
.meta-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.meta-info span {
  display: flex;
  align-items: center;
}

.meta-info i {
  margin-right: 0.5rem;
}

/* 底部编辑信息 */
.edit-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

.edit-info a {
  color: #6b7280;
  text-decoration: none;
}

.edit-info a:hover {
  color: #3b82f6;
}

/* 代码块样式 */
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* 页面通用样式 */
.page-container {
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #213547;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
}

.section {
  margin: 80px 0;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
}

.card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.grid {
  display: grid;
  gap: 32px;
}

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

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

/* 英雄区域样式 */
.hero-section {
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 900px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -2px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 12px 32px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.server-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.server-info p {
  margin: 4px 0;
}

.server-info code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* 反作弊页面样式 */
.anticheat-sidebar {
  width: 280px;
  position: fixed;
  height: 100vh;
  border-right: 1px solid #eee;
  background: #f9fafb;
  padding: 40px 24px;
  overflow-y: auto;
}

.anticheat-main {
  margin-left: 280px;
  padding: 60px 80px;
  max-width: 900px;
}

.anticheat-nav-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  color: #666;
  margin-bottom: 4px;
  text-decoration: none;
}

.anticheat-nav-item:hover {
  color: var(--primary-color);
}

.anticheat-nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
  background: #eff6ff;
  border-right: 2px solid var(--primary-color);
}

.ban-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ban-table th {
  background: #f6f6f7;
  text-align: left;
  padding: 12px;
  font-size: 12px;
  color: #999;
}

.ban-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.warning-banner {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 2rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  animation: warnGlow 2s infinite alternate;
}

.warning-banner h3 {
  color: #b91c1c;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.warning-banner p {
  color: #991c1c;
  font-size: 0.875rem;
}

@keyframes warnGlow {
  from { box-shadow: 0 0 5px rgba(220, 38, 38, 0.3); }
  to { box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
}

.time-line {
  border-left: 2px solid var(--primary-color);
  padding-left: 24px;
  position: relative;
  margin-bottom: 40px;
}

.time-line::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid #fff;
}

/* 插件介绍样式 */
.plugin-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.plugin-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plugin-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

.plugin-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.plugin-desc {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.plugin-version {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* 规则页面样式 */
.rule-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.rule-number {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: bold;
  margin-right: 12px;
}

.rule-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.rule-desc {
  color: var(--text-secondary);
}

/* FAQ页面样式 */
.faq-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  color: var(--text-secondary);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 页脚样式 */
.footer {
  background-color: #f9fafb;
  padding: 40px 0 20px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  margin: 20px 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* 文档页面样式 */
.doc-section {
  display: none;
}

.doc-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 文档页整体背景（视频背景已由 bg-video 提供） */

body.docs-page .page-container {
  background: transparent;
}

body.docs-page .page-container .container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  min-height: 100vh;
}

/* 关于页背景（视频背景已由 bg-video 提供） */
body.about-page {
  min-height: 100vh;
}

body.about-page .page-container {
  background: transparent;
}

body.about-page .page-container .container {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border-radius: 16px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.prose h1 { font-size: 40px; font-weight: 800; color: #213547; margin-bottom: 24px; }

.prose h2 { font-size: 24px; font-weight: 700; margin-top: 48px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }

.prose p { line-height: 1.8; margin-bottom: 20px; color: #4b5563; }

.time-node { border-left: 2px solid #3b82f6; padding-left: 24px; position: relative; margin-bottom: 40px; }

.time-node::before { content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; background: #3b82f6; border-radius: 50%; border: 3px solid #fff; }

/* npucraft样式调整 */
.text-5xl {
  font-size: 3rem;
  line-height: 1.2;
}

.text-3xl {
  font-size: 2.25rem;
  line-height: 1.2;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 1.2;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.2;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.bg-purple-100 {
  background-color: #ede9fe;
}

.rounded-full {
  border-radius: 9999px;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

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

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

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.gap-12 {
  gap: 3rem;
}

.gap-6 {
  gap: 1.5rem;
}

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

.font-bold {
  font-weight: 700;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.transition {
  transition: all 0.3s ease;
}

.p-6 {
  padding: 1.5rem;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-blue-600 {
  color: #2563eb;
}

.text-green-600 {
  color: #059669;
}

.text-purple-600 {
  color: #9333ea;
}

.mr-3 {
  margin-right: 0.75rem;
}

.sm\:flex-row {
  flex-direction: row;
}

.sm\:flex-col {
  flex-direction: column;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 通知系统样式 */
.notification-badge {
    position: relative;
    cursor: pointer;
}

.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: block;
}

.notification-panel {
    position: fixed;
    top: 64px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
}

.notification-panel.active {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}



/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e5e7eb;

}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 社区样式 */
.community-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.community-tab:hover {
    background: var(--bg-light);
}

.community-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.post-item {
    padding: 20px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.post-item:hover {
    background: var(--bg-light);
}

.sticky-post {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tag-popular {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: inline-block;
    transition: all 0.3s;
}

.tag-popular:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-light);
}

.message {
    display: flex;
    margin-bottom: 16px;
}

.message-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.message-author {
    font-weight: 600;
    margin-right: 8px;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message-text {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-input-container {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gallery-action-btn:hover {
    transform: scale(1.1);
    background: var(--bg-light);
}

.event-item {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: transform 0.3s;
}

.event-item:hover {
    transform: translateY(-2px);
}

.event-icon {
    flex-shrink: 0;
}

.calendar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background: var(--bg-light);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.calendar-day.header {
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
}

.calendar-day:hover:not(.header) {
    background: var(--bg-light);
    cursor: pointer;
}

.event-day {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* 反作弊系统炫酷特效 */
.ban-table tr {
    transition: all 0.3s ease;
}

.ban-table tr:hover {
    background: linear-gradient(90deg, #fef2f2, #fee2e2);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}


/* 表单炫酷效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

input:focus, textarea:focus {
    animation: borderGlow 0.5s ease;
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
}

/* 统计数字动画 */
.stats-number {
    transition: all 0.5s ease;
    animation: numberPulse 2s infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 按钮悬停效果 */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 反作弊系统专用动画 */
@keyframes antiCheatScan {
    0% { transform: scaleX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

.scan-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    animation: antiCheatScan 3s infinite;
}

@keyframes hackerAlert {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
}

.hacker-alert {
    animation: hackerAlert 0.5s ease-in-out 3;
}

/* 炫酷的封禁通知效果 */
.ban-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    font-weight: 600;
}

.ban-notification.show {
    transform: translateX(0);
}

.ban-notification .icon {
    margin-right: 12px;
    font-size: 1.5rem;
}

/* 管理员操作日志样式 */
.admin-log-row {
    transition: all 0.3s ease;
}

.admin-log-row:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

/* 违规类型条形图动画 */
.violation-bar {
    transition: width 0.5s ease;
}

/* 时间分布统计动画 */
.time-stat {
    transition: all 0.3s ease;
}

.time-stat:hover {
    transform: scale(1.02);
}

/* 反作弊系统工具类 */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.transition-all { transition-property: all; transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
/* 移除有问题的Tailwind CSS类 */
/* 这些是Tailwind CSS的变量，在原生CSS中不需要 */
/* .transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } */

/* 简化的变换类 */
.transform { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.translate-y-0 { transform: translateY(0); }
.translate-y-full { transform: translateY(100%); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.z-50 { z-index: 50; }
.fixed { position: fixed; }
.top-4 { top: 1rem; }
.bottom-4 { bottom: 1rem; }
.right-4 { right: 1rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.p-4 { padding: 1rem; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }

.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.hover\:opacity-100:hover { opacity: 1; }
/* 警报通知样式 - 炫酷视觉反馈 */
.alert {
  border-radius: 8px;
  position: relative;
}

.alert-warning {
  border-left-color: #f59e0b;
}

.alert-danger {
  border-left-color: #ef4444;
}

.alert-success {
  border-left-color: #10b981;
}

.alert h4 {
  margin: 0;
  padding: 0;
}

.alert p {
  margin: 6px 0 0;
  font-size: 14px;
}

.alert .fas {
  width: 24px;
  text-align: center;
}

/* 导航项高亮 */
.nav-item.active-link,
.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold;
  background-color: rgba(59, 130, 246, 0.1) !important;
  border-radius: 4px;
}

/* 空状态优化 */
.empty-state {
  display: block;
}

/* 通知系统样式 */
#notification-container {
  pointer-events: none;
}

#notification-container > * {
  pointer-events: auto;
}

.notification {
  animation: slideIn 0.3s ease-out forwards;
}

.notification.sliding-out {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 暗色模式下的通知样式 */
.dark-mode .notification {
  background-color: #2d3748;
  border-left-color: var(--primary-color);
}

.dark-mode .notification span {
  color: #e2e8f0;
}

/* =============================================
   汉堡菜单 (Hamburger Button)
   ============================================= */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端遮罩 */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 149;
}

/* 移动端导航面板 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 150;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 8px;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.mobile-nav a:hover { background: #f3f4f6; }
.mobile-nav a.active { background: #eff6ff; color: var(--primary-color); font-weight: 700; }

.mobile-nav .mobile-nav-group {
  padding: 4px 0;
}

.mobile-nav .mobile-nav-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px 4px;
}

.mobile-nav .sub-item { padding-left: 36px; font-size: 14px; }


/* =============================================
   统一响应式 (768px 以下)
   ============================================= */

@media (max-width: 768px) {

  /* --- 汉堡菜单可见 --- */
   .hamburger { display: flex; }
   .mobile-nav.open { display: flex; }
   .mobile-overlay.open { display: block; }

  /* --- 隐藏桌面导航 --- */
  .nav-links { display: none; }

  /* --- 导航栏 --- */
  .navbar {
    padding: 0 16px;
    justify-content: space-between;
  }

  .nav-brand { flex: unset; }

  .nav-icons { margin-left: auto; padding-right: 12px; }

  /* --- 网格全栈 --- */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: 1fr; }

  /* --- 文档侧边栏隐藏 --- */
  .w-64.lg\:block { display: none !important; }

  .flex.lg\:flex-row { flex-direction: column; }

  /* --- 文档主区域 --- */
  .doc-section { padding: 0; }
  .doc-section h1 { font-size: 1.75rem; line-height: 1.3; }

  body.docs-page .page-container .container { flex-direction: column; gap: 0; padding: 16px; }

  /* --- 文档Flex布局 --- */
  .page-container .container > .flex {
    flex-direction: column;
  }

  body.docs-page .page-container .container,
  body.about-page .page-container .container { padding: 24px; }

  /* --- 英雄区域 --- */
  .hero-section { height: auto; min-height: 60vh; padding: 80px 16px 40px; }
  .hero-title { font-size: 2rem; }
  .hero-content { max-width: 100%; }

  /* --- 页面标题 --- */
  .page-title { font-size: 1.75rem; }
  .page-subtitle { font-size: 0.9rem; }

  /* --- 页脚 --- */
  .footer-content { grid-template-columns: 1fr; gap: 24px; }

  /* --- 卡片 --- */
  .card { padding: 20px; }

  /* --- 通知面板 --- */
  .notification-panel { width: calc(100% - 32px); right: 16px; }

  /* --- 模态框 --- */
  .modal-content { width: 95%; margin: 10px; }

  /* --- 告警 --- */
  .alert { padding: 16px 12px; }
  .alert h4 { font-size: 15px; }
  .alert p { font-size: 13px; }

  /* --- 表格响应式 --- */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; font-size: 13px; }
  table thead { display: table-header-group; }
  table tbody { display: table-row-group; }
  table th, table td { white-space: nowrap; padding: 8px; }
  tr { display: table-row; }

  /* --- section间距 --- */
  .section { padding: 32px 0; }

  /* --- 文档区域顶部间距 --- */
  .flex-1.pt-24 { padding-top: 80px; }
  .page-container .container { padding: 0 12px; }

  /* --- bg-grey面板 --- */
  .bg-gray-50, .bg-white.p-4, .bg-white.p-6 { padding: 16px !important; }

  /* --- 字体缩放 --- */
  .text-4xl { font-size: 1.75rem !important; }
  .text-5xl { font-size: 2rem !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-2xl { font-size: 1.25rem !important; }
  .text-lg { font-size: 1rem !important; }
  .text-xl { font-size: 1.1rem !important; }

  /* --- Rule items --- */
  .rule-item { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* --- FAQ --- */
  .faq-question { font-size: 14px; padding: 12px; }

  /* --- 按钮全宽 --- */
  .hero-buttons .btn-primary { width: 100%; }

  /* --- 联系方式列表 --- */
  .footer-links li { font-size: 13px; }

  /* --- 关于页面团队成员 --- */
  .grid.grid-cols-3.gap-6 { grid-template-columns: 1fr; gap: 16px; }
}


/* =============================================
   小型手机 (480px 以下)
   ============================================= */

@media (max-width: 480px) {
  body { font-size: 14px; }

  .hero-section { min-height: 50vh; padding: 64px 12px 32px; }
  .hero-title { font-size: 1.6rem; }

  .navbar { height: 56px; }

  .mobile-nav { width: 100%; right: -100%; }

  .nav-brand span { font-size: 14px; }

  .text-4xl { font-size: 1.5rem !important; }
  .text-5xl { font-size: 1.75rem !important; }

  /* 入服指南步骤 */
  .doc-section .text-2xl.font-bold { font-size: 1.1rem !important; }

  /* grid card间距 */
  .grid { gap: 12px; }

  body.generic-page main { margin: 60px 8px 20px; padding: 16px; border-radius: 10px; }
}

.dark-mode .notification button {
  color: #a0aec0;
}

.dark-mode .notification button:hover {
  color: #e2e8f0;
}

/* =============================================
   UI特效动画
   ============================================= */

/* 滚动渐入 */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 页面切换过渡 */
main { animation: page-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes page-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 标题渐变光效 */
.hero-section h1 {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 40%, #93c5fd 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  transform: translateZ(0);
}

/* hero底部IP渐显 */
.hero-section .server-address {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

/* 按钮脉冲光环 */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover::after { opacity: 1; }

/* 导航栏滚动增强 */
.navbar.nav-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.85);
}
body.dark-mode .navbar.nav-scrolled {
  background: rgba(17,24,39,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* 状态指示灯呼吸 */
.status-online .status-dot {
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 16px rgba(34,197,94,0.8); }
}

/* hero-content z-index 盖过粒子 */
.hero-content { position: relative; z-index: 2; }

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

/* =============================================
   更多 UI 特效
   ============================================= */

/* 卡片边框渐变发光 */
.card {
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3), rgba(59,130,246,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }

/* 页脚链接下划线动画 */
.footer-links a {
  position: relative;
  text-decoration: none;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #3b82f6;
  transition: width 0.3s ease;
}
.footer-links a:hover::after { width: 100%; }

/* 返回顶部按钮脉冲 */
.back-to-top {
  animation: btt-pulse 2s ease-in-out infinite;
}
@keyframes btt-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
  50% { box-shadow: 0 4px 24px rgba(59,130,246,0.6); }
}

/* =============================================
   鼠标光标特效
   ============================================= */

/* 自定义指针 */
body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%233b82f6' stroke-width='2' opacity='0.4'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%233b82f6' opacity='0.8'/%3E%3C/svg%3E") 12 12, auto; }

/* 可点击元素用手指 */
a, button, .copy-addr, [onclick], .card, .nav-item, .dropdown-item, .back-to-top, .hamburger, .theme-toggle {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='none' stroke='%233b82f6' stroke-width='2' opacity='0.5'/%3E%3Ccircle cx='14' cy='14' r='5' fill='%233b82f6'/%3E%3C/svg%3E") 14 14, pointer;
}

/* 输入框用I型 */
input, textarea, select, [contenteditable], code, .copy-addr {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect x='8' y='2' width='4' height='16' rx='2' fill='%233b82f6' opacity='0.7'/%3E%3C/svg%3E") 10 10, text;
}

/* 鼠标跟随光晕 - Canvas */
.cursor-glow {
  display: none;
}

/* 鼠标拖尾粒子 */
.trail-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,180,255,0.8) 0%, rgba(180,140,255,0.3) 40%, transparent 70%);
  animation: trail-fade 0.4s ease-out forwards;
}
@keyframes trail-fade {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* 复制成功爆炸圈 */
.copy-ripple {
  position: fixed;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 10000;
}
@keyframes ripple-out {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; margin-left: -40px; margin-top: -40px; }
}

/* =============================================
   服务器状态大卡片
   ============================================= */
.status-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 50%, #f0fdf4 100%);
  border-radius: 24px;
  padding: 36px 40px;
  border: 1px solid #bfdbfe;
  position: relative;
  overflow: hidden;
}
.status-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.status-hero-ring {
  position: relative;
  width: 160px; height: 160px;
  flex-shrink: 0;
}
.status-hero-svg {
  width: 160px; height: 160px;
  filter: drop-shadow(0 4px 12px rgba(34,197,94,0.2));
  transition: filter 0.5s;
}
.status-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.status-hero-icon {
  font-size: 22px;
}
.status-hero-count {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.status-hero-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.status-hero-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.status-dot-large {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #9ca3af;
}
.status-hero-state.online .status-dot-large { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.5); animation: breathe 2s ease-in-out infinite; }
.status-hero-state.offline .status-dot-large { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.5); }
.status-hero-state.loading .status-dot-large { background: #f59e0b; animation: pulse-dot 1s ease-in-out infinite; }
#status-text { font-size: 16px; font-weight: 600; color: #1e293b; }
.status-hero-meta {
  display: flex;
  gap: 24px;
}
.status-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-hero-meta-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-hero-meta-value {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  max-width: 320px;
  white-space: normal;
  word-break: break-all;
  line-height: 1.4;
}
.status-hero-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-hero-bar-track {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.status-hero-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-hero-bar-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}
.status-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-hero .btn-primary {
  padding: 10px 24px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .status-hero { flex-direction: column; padding: 28px 20px; gap: 24px; text-align: center; }
  .status-hero-ring { width: 130px; height: 130px; }
  .status-hero-svg { width: 130px; height: 130px; }
  .status-hero-count { font-size: 28px; }
  .status-hero-state { align-self: center; }
  .status-hero-meta { justify-content: center; flex-wrap: wrap; }
  .status-hero-actions { justify-content: center; }
}

/* 服务器地址可复制 */
.server-status,
.server-status-light {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 英雄区暗色背景用 */
.server-status .status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #d1d5db;
}

.server-status .status-detail {
  color: rgba(255,255,255,0.7);
}

/* 浅色背景用 */
.server-status-light .status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 14px;
  color: #4b5563;
}

.server-status-light .status-detail {
  color: #6b7280;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-online .status-dot { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.status-offline .status-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.status-loading .status-dot { background: #f59e0b; }

.status-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.copy-addr {
  transition: all 0.2s ease;
  user-select: all;
  -webkit-user-select: all;
}

.copy-addr:hover i.fa-copy { opacity: 1 !important; }

/* =============================================
   返回顶部按钮
   ============================================= */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.5);
}

/* =============================================
   暗色模式
   ============================================= */

/* 切换按钮 */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover { color: var(--primary-color); background: rgba(59,130,246,0.08); }

/* 暗色模式全局 */
body.dark-mode {
  background-color: #111827;
  color: #e5e7eb;
}

body.dark-mode .navbar {
  background: rgba(17, 24, 39, 0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}

body.dark-mode .nav-link { color: #d1d5db; }
body.dark-mode .nav-link:hover { color: #60a5fa; }
body.dark-mode .nav-brand span { color: #f3f4f6; }
body.dark-mode .hamburger span { background: #d1d5db; }

body.dark-mode .dropdown-content {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .dropdown-item { color: #d1d5db; }
body.dark-mode .dropdown-item:hover { background: #374151; }

body.dark-mode .page-title { color: #f3f4f6; }
body.dark-mode .page-subtitle { color: #9ca3af; }

body.dark-mode .card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

body.dark-mode .bg-gray-50 {
  background: #1f2937 !important;
}

body.dark-mode .bg-white { background: #1f2937 !important; }
body.dark-mode .border { border-color: #374151 !important; }

body.dark-mode table { color: #e5e7eb; }
body.dark-mode table tr.border-b { border-color: #374151; }
body.dark-mode table thead tr { background: #111827; }

body.dark-mode code,
body.dark-mode .bg-gray-100 { background: #1f2937; color: #d1d5db; }

body.dark-mode .bg-blue-50 { background: rgba(59,130,246,0.15) !important; }
body.dark-mode .bg-green-50 { background: rgba(16,185,129,0.15) !important; }
body.dark-mode .bg-yellow-50 { background: rgba(245,158,11,0.15) !important; }
body.dark-mode .bg-red-50 { background: rgba(239,68,68,0.15) !important; }
body.dark-mode .bg-purple-50 { background: rgba(139,92,246,0.15) !important; }
body.dark-mode .bg-orange-50 { background: rgba(249,115,22,0.15) !important; }

body.dark-mode .text-gray-700 { color: #d1d5db; }
body.dark-mode .text-gray-600 { color: #9ca3af; }
body.dark-mode .text-gray-500 { color: #9ca3af; }
body.dark-mode .text-gray-400 { color: #6b7280; }
body.dark-mode .text-gray-800 { color: #f3f4f6; }
body.dark-mode .text-blue-700 { color: #93c5fd; }
body.dark-mode .text-green-700 { color: #6ee7b7; }
body.dark-mode .text-purple-700 { color: #c4b5fd; }
body.dark-mode .text-red-700 { color: #fca5a5; }
body.dark-mode .text-orange-700 { color: #fdba74; }
body.dark-mode .text-yellow-800 { color: #fde68a; }

body.dark-mode .border-l-4 { border-color: #4b5563 !important; }
body.dark-mode .faq-question { background: #1f2937; }
body.dark-mode .faq-question:hover { background: #374151; }
body.dark-mode .faq-answer { background: #111827; border-top-color: #374151; }

body.dark-mode .rule-item { border-color: #374151; }
body.dark-mode .rule-number { color: var(--primary-color); }

body.dark-mode .warning-banner { background: rgba(239,68,68,0.12); }
body.dark-mode .warning-banner h3 { color: #fca5a5; }
body.dark-mode .warning-banner p { color: #fca5a5; }

body.dark-mode .bg-pink-50 { background: rgba(236,72,153,0.15) !important; }

body.dark-mode .footer { background: #0f172a; border-top-color: #1e293b; }
body.dark-mode .footer h3 { color: #e5e7eb; }
body.dark-mode .footer * { color: #9ca3af; }
body.dark-mode .footer a:hover { color: #60a5fa; }

body.dark-mode .hero-section { color: #fff; }

body.dark-mode .mobile-nav { background: #1f2937; }
body.dark-mode .mobile-nav a { color: #d1d5db; }
body.dark-mode .mobile-nav a:hover { background: #374151; }
body.dark-mode .mobile-nav a.active { background: rgba(59,130,246,0.2); color: #60a5fa; }
body.dark-mode .mobile-nav-group-title { color: #6b7280; }

body.dark-mode .w-64 { background: #0f172a; border-right-color: #1f2937; }
body.dark-mode .nav-item { color: #9ca3af; }
body.dark-mode .nav-item:hover { background: #1f2937; color: #60a5fa; }
body.dark-mode .nav-item.active-link { background: rgba(59,130,246,0.2) !important; color: #60a5fa !important; }

body.dark-mode summary { background: #1f2937; }
body.dark-mode summary:hover { background: #374151; }

body.dark-mode.docs-page .page-container .container { background: rgba(30, 41, 59, 0.75); color: #e2e8f0; }
body.dark-mode.about-page .page-container .container { background: rgba(30, 41, 59, 0.75); color: #e2e8f0; }
body.dark-mode.generic-page main { background: rgba(30,41,59,0.7) !important; color: #e2e8f0; }
body.dark-mode.generic-page main h2,
body.dark-mode.generic-page main h3 { color: #e2e8f0; }
body.dark-mode.generic-page main p,
body.dark-mode.generic-page main li { color: #cbd5e1; }

/* 规则/FAQ/404页透明容器 */
body.generic-page {
  background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #1e3a5f 70%, #0f172a 100%) fixed;
}

body.generic-page main {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  max-width: 1000px;
  margin: 100px auto 40px;
  padding: 32px;
}

.plugin-tab {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}
.plugin-tab:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.plugin-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.plugin-cat {
    display: none;
}
.plugin-cat.show {
    display: block;
}

.weather-info {
    font-size: 14px;
    color: #3c3c43;
    display: flex;
    align-items: center;
    gap: 4px;
}
.weather-info i {
    color: #f59e0b;
}
.qq-link {
    color: #07c160;
    font-weight: 500;
}
.qq-link:hover {
    color: #06ad56;
    text-decoration: underline;
}
