
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", "楷体", sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

.body {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    height: calc(100vh - 50px); /* 视口高度减去头部高度 */
    width: 100%;
}

.body img {
    display: block; /*block：块级，独占一行，取消两张主体背景图之间的白色间隙*/
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease; /* 统一过渡动画 */
}

/* 头部导航样式 */
.head {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hleft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hleft #l {
  font-size: 24px;
  font-weight: bold;
  color: #fff3cd;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hleft #r {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hright {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hright a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 20px;
}

.hright a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 适配平板设备 */
@media (max-width: 1024px) {
    .hline {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .hleft {
        gap: 15px;
    }
    
    .hleft #l {
        font-size: 22px;
    }
    
    .hleft #r {
        font-size: 18px;
    }
    
    .hright {
        gap: 12px;
    }
    
    .hright a {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .body {
        height: calc(100vh - 40px);
        padding: 0 10px;
    }
    
    /* 平板端图片调整 - 缩小到当前的1/5 */
    .body img {
        max-width: 20%;
        height: auto;
    }
    
    .body img:first-child {
        max-width: 20%;
        height: auto;
    }
    
    .body img#a {
        max-width: 20%;
        height: auto;
    }
}

/* 适配移动端 */
@media (max-width: 768px) {
    .head {
        padding: 10px 0;
    }
    
    .hline {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hleft {
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .hleft #l {
        font-size: 22px;
    }
    
    .hleft #r {
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .hright {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .hright a {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 16px;
        flex: 1 1 70px;
        text-align: center;
    }
    
    .body {
        height: calc(100vh - 30px);
        padding: 0 5px;
    }
    
    /* 移动端图片调整 - 缩小到当前的1/5 */
    .body img {
        max-width: 20%;
        height: auto;
    }
    
    .body img:first-child {
        max-width: 20%;
        height: auto;
    }
    
    .body img#a {
        max-width: 20%;
        height: auto;
    }
}
