/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'LXGW WenKai', sans-serif;
  font-weight: bold;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 视频背景容器 */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: url('https://cn-nb1.rains3.com/smf2010/1.%E5%AE%88%E5%B2%B8%E4%BA%BA.jpg') center/cover;
}

.bg-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.5s;
}

/* 主容器 */
.container {
  position: relative;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.6);
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

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

/* 文字样式 */
h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin-bottom: 1.5rem;
  color: #34495e;
}

/* 导航链接 */
.nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.nav-links a {
  padding: 0.8rem;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 8px;
  color: #007bff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }
}

.tip {
  font-size: 0.9rem;
  color: #7f8c8d;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 视频错误状态 */
.video-error .bg-video {
  opacity: 0;
}

.video-error::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 1;
}
