:root {
  /* 亮色系科技感色板 */
  --primary-dark: #e6e9f2;
  /* 浅灰背景 */
  --primary-light: #f5f7fa;
  /* 更浅的基础面板 */
  --accent-cyan: #00a8ff;
  /* 核心强调色 */
  --accent-purple: #a25afd;
  /* 辅助强调色 */
  --gradient-start: #7386ff;
  /* 渐变起始 */
  --gradient-end: #ff6b81;
  /* 渐变结束 */
  --card-shadow: 0 4px 6 -1px rgba(0, 168, 255, 0.1),
    0 2px 4 -1px rgba(162, 90, 253, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--primary-dark);
  font-family: "Segoe UI", system-ui;
  overflow: hidden; /* 完全隐藏滚动条 */
  margin: 0;
  padding: 0;
  height: 100vh; /* 确保 body 高度为视口高度 */
}

/* 导航栏优化 */
nav {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfe 100%);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 导航栏光效 */
nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: lightEffect 8s infinite linear;
}

@keyframes lightEffect {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* 品牌标识 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 1;
}

.brand .logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(45deg, #00a8ff, #7386ff);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.brand .logo::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 3px;
}

.brand h1 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(90deg, #00a8ff, #a25afd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 导航链接 */
.nav-links {
  display: flex;
  gap: 1.5rem;
  z-index: 1;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00a8ff, #a25afd);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::before {
  width: 100%;
}

/* 导航按钮 */
.nav-actions {
  display: flex;
  gap: 1rem;
  z-index: 1;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(90deg, #00a8ff, #7386ff);
  color: white;
  border: none;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

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

.btn:active::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 滚动效果 */
nav.scroll {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #1a1e2d 0%, #283046 0.95);
  box-shadow: 0 4px 30px -2px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 30, 45, 0.98);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}


/* 侧边栏改造 */
.sidebar {
  background: rgba(245, 247, 250, 0.95);
  backdrop-filter: blur(8px);
}

.sidebar a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar a:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 168, 255, 0.1) 0%,
    rgba(162, 90, 253, 0.1) 100%
  );
  transform: translateX(5px);
}

.sidebar a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 165, 235, 0.3);
  border-radius: inherit;
  pointer-events: none;
}

/* 卡片系统升级 */
.data-card {
  background: rgba(245, 247, 250, 0.8);
  border-top: 4px solid;
  border-image: linear-gradient(
      90deg,
      var(--gradient-start),
      var(--gradient-end)
    )
    1;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

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

/* 表格优化 */
.data-table th {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.data-table tr:nth-child(even) {
  background: rgba(252, 252, 252, 0.05);
}

/* 按钮系统 */
.btn-primary {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6 -1px rgba(0, 168, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 15 -3px rgba(0, 168, 255, 0.3);
}

/* 微交互元素 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse-icon {
  animation: pulse 2s infinite;
  color: var(--accent-cyan);
}

/* index */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  background: #000;
}

.login-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.5s ease-in-out;
  z-index: 1;
  position: relative;
}

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

.input-field {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 5px;
  padding: 10px;
  color: #333;
  transition: background-color 0.3s ease;
}

.input-field:focus {
  background-color: rgba(0, 0, 0, 0.1);
  outline: none;
}

.submit-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0056b3;
}

.link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link:hover {
  color: #0056b3;
}

label {
  color: #333;
}

#captchaDisplay {
  color: #333;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite; /* 修改动画周期为 3 秒 */
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.nebula {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  animation: nebulaGlow 10s infinite alternate;
}

@keyframes nebulaGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.galaxy {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  animation: galaxyRotate 30s infinite linear;
}

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

.constellation {
  position: absolute;
  opacity: 0.8;
  animation: constellationFade 15s infinite alternate;
}

@keyframes constellationFade {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.8;
  }
}

main {
  background: #ffffff;
  display: flex; /* 设置为 Flex 容器 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  min-height: 100vh; /* 确保 main 元素至少占满整个视口高度 */
}

#main-table {
  border-collapse: collapse;
  width: 80%;
  height: auto; /* 让表格高度自适应 */
  max-width: 100%; /* 确保表格不超出屏幕宽度 */
}

#main-table td {
  width: auto; /* 让单元格宽度自适应 */
  height: auto; /* 让单元格高度自适应 */
  text-align: center; /* 文本和图标居中显示 */
  vertical-align: middle; /* 垂直居中 */
  padding: 5px; /* 添加内边距 */
}

#main-table span {
  display: block;
}

#main-table img {
  max-width: 100%; /* 让图片宽度自适应单元格 */
  height: auto; /* 保持图片比例 */
  display: block;
  margin: 0 auto 5px;
}

/* 媒体查询，根据屏幕大小调整样式 */
@media (max-width: 768px) {
  #main-table {
    width: 90%; /* 在小屏幕上适当缩小表格宽度 */
  }
}

/* 固定页脚 */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white; /* 修改背景色为白色 */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* 参考nav的边框样式 */
  box-shadow: 0 -4px 20px -2px rgba(0, 0, 0, 0.3); /* 添加类似nav的阴影，方向相反 */
  padding: 1rem;
  text-align: center;
  z-index: 100;
}

/* 内容容器，处理滚动 */
.content-container {
  height: calc(100vh - 80px); /* 视口高度减去导航栏和页脚高度 */
  overflow-y: auto;
  padding: 1rem;
  margin-top: 80px; /* 留出导航栏空间 */
  margin-bottom: 40px; /* 留出页脚空间 */
}

/* 隐藏滚动条但保留功能 */
.content-container::-webkit-scrollbar {
  display: none;
}

.content-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}