/* 全局样式复用（和主站一致） */
*{
  margin:0;
  padding:0;
  box-sizing:border-box
}

/* 基础样式 */
body{
  font-family:"Microsoft YaHei", Arial, sans-serif;
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=epic%20fantasy%20game%20background%20with%20castle%20and%20mountains%2C%20dark%20medieval%20style%2C%20high%20resolution%2C%20dramatic%20lighting&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color:#ccc;
  line-height:1.6;
  font-size:16px;
  overflow-x:hidden;
  position: relative;
}

/* 背景覆盖层，确保内容可读性 */
body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* 确保所有内容都在背景覆盖层之上 */
body > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 容器样式 */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
  width:100%;
  position:relative;
  z-index:1
}

/* 链接样式 */
a{
  color:#ccc;
  text-decoration:none;
  transition:all 0.3s ease;
}

a:hover{
  color:#d4af37;
}

/* 按钮基础样式 */
button{
  cursor:pointer;
  border:none;
  background:none;
  font-family:inherit;
  color:inherit;
  transition:all 0.3s ease;
}

/* 图片优化 */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* 列表样式 */
ul, ol{
  list-style:none;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6{
  color:#d4af37;
  margin-bottom:15px;
  font-weight:bold;
}

/* 清除浮动 */
.clearfix::after{
  content:"";
  display:table;
  clear:both;
}

/* 响应式设计基础 */
@media screen and (max-width: 768px) {
  body{
    font-size:14px;
  }
  
  .container{
    padding:0 10px;
  }
  
  h1{
    font-size:24px;
  }
  
  h2{
    font-size:20px;
  }
  
  h3{
    font-size:18px;
  }
}

@media screen and (max-width: 480px) {
  body{
    font-size:13px;
  }
  
  h1{
    font-size:20px;
  }
  
  h2{
    font-size:18px;
  }
  
  h3{
    font-size:16px;
  }
}
