
/* 基本颜色变量定义 */
:root {
  --primary-color: #0A1D37; /* 深蓝色 主色调 */
  --secondary-color: #1B2A49; /* 紫色 辅色调 */
  --accent-color: #00AEEF; /* 亮蓝色 点缀色 */
  --neutral-color: #FFFFFF; /* 白色 中性色 */
  --overlay-color: rgba(255, 255, 255, 0.2); /* 磨砂玻璃覆盖色 */
}

/* 全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--primary-color);
  color: var(--neutral-color);
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 29, 55, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 29, 55, 0.9);
}

.navbar a {
  color: var(--neutral-color);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-color);
}

/* 加载页样式 */
.loader {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader canvas {
  width: 100%;
  height: 100%;
}

/* 背景渐变 */
.background-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 100%;
  width: 100%;
  position: relative;
  padding-top: 70px; /* 留出导航栏高度 */
}

/* 容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* 磨砂玻璃效果 */
.frosted-glass {
  background: var(--overlay-color);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 图片样式 */
.frosted-glass img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frosted-glass img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
}

/* 按钮样式 */
.button, .cta-button {
  background-color: var(--accent-color);
  color: var(--neutral-color);
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover, .cta-button:hover {
  background-color: #0096D6;
  transform: scale(1.05);
}

/* 弹窗样式 */
.popup {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background: var(--overlay-color);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  width: 80%;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.close {
  color: var(--neutral-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--accent-color);
}

/* 图标样式 */
.icon {
  stroke: var(--neutral-color);
  stroke-width: 2;
  fill: none;
  width: 24px;
  height: 24px;
}

/* 语言切换器样式 */
.language-switcher {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.language-switcher button {
  background: var(--overlay-color);
  color: var(--neutral-color);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 搜索栏样式 */
.search-bar {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
}

.search-bar input {
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: var(--overlay-color);
  backdrop-filter: blur(10px);
  color: var(--neutral-color);
  transition: box-shadow 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  box-shadow: 0 0 5px var(--accent-color);
}

/* 关键帧动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.frosted-glass, .container > div {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.frosted-glass.visible, .container > div.visible {
  opacity: 1;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px;
  text-align: left;
}

table th {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    grid-template-columns: 1fr;
  }
}

