/* ===== 基础全局设置 ===== */
html {
  margin-top: 0;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  margin: 0;
  line-height: inherit;
  color: #e5e7eb;
  background-color: #0a0a0a;
  position: relative;
  overflow-x: hidden;
}

/* ===== 动态背景粒子效果 ===== */
body::before {
  content: "";
  position: fixed;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0, 230, 255, 0.12), transparent 50%);
  filter: blur(120px);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 25px 25px;
  z-index: 0;
}

/* ===== 链接样式 ===== */
a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00cfff;
  text-decoration: underline;
}

/* ===== 深色主题统一调整（减少 !important）===== */
.bg-white,
.bg-gray-100 {
  background-color: #1f2937;
}

.text-gray-600,
.text-gray-700 {
  color: #d1d5db;
}

.text-gray-500 {
  color: #9ca3af;
}

.text-black {
  color: #ffffff;
}

/* ===== 页脚统一风格 ===== */
footer,
.footer {
  background-color: #111827;
  color: #d1d5db;
}

.footer a {
  color: #00aaff;
  transition: color 0.2s;
}

.footer a:hover {
  text-decoration: underline;
  color: #00cfff;
}
/* ===== 正下方居中下拉菜单 ===== */
#dropdown-menu {
  position: absolute;
  left: 50%; /* 先定位到按钮水平中点 */
  transform: translateX(-50%) translateY(0.5rem); /* 再向左移动自身宽度的一半 */
  top: 100%; /* 从按钮底部开始 */
  width: 10rem; /* 保持你的原始宽度 */
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.2s ease-out;
  pointer-events: none;
  z-index: 9999;
  display: block !important;
}

#dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* 保持水平居中 */
  pointer-events: auto;
}

/* 确保三角形指示器居中（可选）*/
#download-menu::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent #1f2937;
  display: none;
}

#dropdown-menu:not(.hidden) ~ #download-menu::after {
  display: block;
}