* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Noto Sans SC', sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* 头部导航样式 */
.header {
  position: relative;
  width: 100%;
}

/* 英雄区域样式 */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('default-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 50px; /* 添加底部内边距，避免与手机浏览器底部交互区域重叠 */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -50px; /* 整体向上移动 */
}

.site-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* 三色动态效果 */
.tri-color {
  display: inline-block;
  position: relative;
  color: #fff;
  text-shadow: 
    -2px -2px 0 #ff00ff,
    2px 2px 0 #00ffff;
  animation: glitch 3s infinite;
  transition: all 0.3s ease;
}

.title-link {
  text-decoration: none;
  color: inherit;
}

.title-link:hover .tri-color {
  text-shadow: 
    0 0 10px #ff00ff,
    0 0 20px #00ffff,
    0 0 30px #ffffff;
  filter: brightness(1.5);
  transform: scale(1.05);
}

@keyframes glitch {
  0% {
    text-shadow: 
      -2px -2px 0 #ff00ff,
      2px 2px 0 #00ffff;
  }
  25% {
    text-shadow: 
      2px 2px 0 #ff00ff,
      -2px -2px 0 #00ffff;
  }
  50% {
    text-shadow: 
      -1px 1px 0 #ff00ff,
      1px -1px 0 #00ffff;
  }
  75% {
    text-shadow: 
      1px -1px 0 #ff00ff,
      -1px 1px 0 #00ffff;
  }
  100% {
    text-shadow: 
      -2px -2px 0 #ff00ff,
      2px 2px 0 #00ffff;
  }
}

.site-subtitle {
  font-size: 1.2rem;
  line-height: 1.5em;
  margin-top: 10px;
  white-space: normal; /* 允许文本自动换行 */
  max-width: 90vw; /* 最大宽度为视口宽度的90% */
  overflow-wrap: break-word; /* 确保长单词也能换行 */
  word-wrap: break-word;
  display: block;
  padding-right: 5px;
  min-height: 3em; /* 增加最小高度，确保有足够空间容纳多行文本 */
  position: relative; /* 添加定位 */
  height: 3em; /* 固定高度 */
  width: 100%; /* 占满容器宽度 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .site-title {
    font-size: 3rem;
  }
  
  .site-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .site-subtitle {
    font-size: 1rem;
    min-height: 4em; /* 增加高度以适应多行 */
    height: 4em;
  }
}
}
