body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f5f5f5;
}

.award-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 300px;
}



.award-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.award-title {
  font-size: 24px;
  color: #1a1818;
  margin-bottom: 10px;
}

.award-rank {
  font-size: 20px;
  color: #000000;
  margin-bottom: 10px;
}

.award-date {
  font-size: 16px;
  color: #000;
}


/* 添加导航栏样式 */
/* 保持原有的奖状样式不变 */

.navbar {
    width: 200px;
    /* 修改背景颜色，最后一个参数 0.8 表示透明度，范围 0 - 1，值越小越透明 */
    background-color: rgba(51, 51, 51, 0.8); 
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nav-brand {
    color: white;
    padding: 20px;
    font-size: 1.5em;
    text-align: center;
    /* 修改背景颜色，最后一个参数 0.8 表示透明度，范围 0 - 1，值越小越透明 */
    background-color: rgba(34, 34, 34, 0.8); 
}

.sub-nav {
    display: none;
    /* 修改背景颜色，最后一个参数 0.8 表示透明度，范围 0 - 1，值越小越透明 */
    background-color: rgba(68, 68, 68, 0.8); 
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: #444;
    border-left: 4px solid #a1a1a1;
    transform: translateX(5px);
}



.nav-item:hover::after {
    transform: translateX(0);
}

.sub-nav {
    display: none;
    background-color: #444;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.nav-item-container:hover .sub-nav {
    display: block;
    opacity: 0.5; /* 保持下拉导航栏透明度为 30% */
    transform: translateX(0);
    animation: slideDown 0.3s ease-out;
}
.award {
    position: relative;
    width: 500px;
    height: 372px;
    margin-bottom: 20px;
    background-image: url('../奖状.jpg');
    background-size: cover;
    background-position: center;
  }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-nav-item {
    color: #ddd;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sub-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #555;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.sub-nav-item:hover::before {
    transform: scaleX(1);
}

.sub-nav-grid {
    padding: 10px;
}

.sub-nav-item {
    color: #ddd;
    text-decoration: none;
    padding: 10px 30px;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}


.sub-nav-item:hover {
    background-color: #555;
    color: #fff;
    padding-left: 35px;
}

/* 调整主内容区域的边距 */
.award-container {
    margin-left: 220px;
}


.back-to-home {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px 20px;
    background-color: #747475;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 1000; /* 确保按钮显示在其他元素之上 */
}

.back-to-home:hover {
    background-color: #4d4d4d;
}