body {
  margin: 0;
  padding: 0;
  background-color: #0a1a35;
  color: #fff;
  font-family: "Microsoft YaHei", sans-serif;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
}

a{ color:#7fbed5;text-decoration: none;}
a:hover{ color:#FF8040;}

/* 新增底部背景图容器 */
.bottom-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background-image: url('../icons/back.jpg');
  background-size: cover;
  background-position: center top;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* 新增渐变覆盖层使背景融合 */
.bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, #0a1a35, transparent);
}

.container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.header {
  text-align: center;
  margin-top: 70px;
  margin-bottom: 70px;
}

.header .title-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header .logo-img {
  height: 70px;
  width: auto;
}

.header h1 {
  font-size: 42px;
  margin: 0;
  background: linear-gradient(to right, #00b4ff, #00f2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 178, 255, 0.3);
}

.header .sub-title {
  font-size: 18px;
  color: #7fbed5;
  margin: 10px auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 20px ;
  width: 80%;
  height: 40vh;
  margin: 0 auto;
  justify-content: center; /* 关键：使网格整体居中 */
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));

}



.grid-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  background: rgba(16, 42, 87, 0.7);
  border: 1px solid rgba(0, 180, 255, 0.2);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 180, 255, 0.4);
  border-color: rgba(0, 180, 255, 0.6);
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #00b4ff, #00f2ff);
}

.grid-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid #00b4ff;
  border-right: 2px solid #00b4ff;
  opacity: 0.5;
  transition: all 0.3s ease;
  flex: auto;

}

.grid-item:hover::after {
  width: 50px;
  height: 50px;
  opacity: 1;
}

.icon {
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  /* 图标染色滤镜 */
  filter: brightness(0) invert(0.8) sepia(1) hue-rotate(180deg) saturate(5);
  transition: filter 0.3s;
}

.grid-item:hover .icon {
  opacity: 1;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

.desc {
  font-size: 16px;
  color: #7fbed5;
  text-align: center;
  line-height: 30px;
  opacity: 0.8;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.grid-item:hover {
  animation: float 2s ease-in-out infinite;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* 底部说明区域 */
.footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  font-size: 16px;
  text-align: center;
  color:#7fbed5;
  line-height:30px;;
}

.footer .bigType {
  cursor:pointer;
  margin: 0 5px;
}
.footer .bigType:hover{
 color:#FFFFFF;
}


/* 登录按钮 */
.login-btn {
  position: fixed;
  top:30px;
  right: 10%;
  padding: 10px 25px;
  background: linear-gradient(135deg, rgba(64, 115, 255, 0.8), rgba(0, 80, 200, 0.8));
  color: #9BD9EA;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 100, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 1001;
}
.login-btn:hover {
  background: linear-gradient(135deg, rgba(80, 140, 255, 0.9), rgba(0, 100, 220, 0.9));
  box-shadow: 0 6px 20px rgba(0, 120, 255, 0.6);
  transform: translateY(-2px);
}


/* 登录按钮 */
.login-btn {
  position: absolute;
  right: 40px;
  padding: 10px 25px;
  background: linear-gradient(135deg, rgba(64, 115, 255, 0.8), rgba(0, 80, 200, 0.8));
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  color:#9BD9EA;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 100, 255, 0.4);
  transition: all 0.3s ease;
}
.login-btn:hover {
  background: linear-gradient(135deg, rgba(80, 140, 255, 0.9), rgba(0, 100, 220, 0.9));
  box-shadow: 0 6px 20px rgba(0, 120, 255, 0.6);
  transform: translateY(-2px);
}

/* 登录弹窗*/
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index:100;
}
.login-overlay.active {
  opacity: 1;
  visibility: visible;
}
.login-box {
  background: linear-gradient(145deg, rgba(16, 42, 90, 0.9), rgba(8, 25, 60, 0.95));
  padding: 30px 40px;
  border-radius: 15px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(64, 115, 255, 0.3);
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.login-overlay.active .login-box {
  transform: translateY(0);
}
.login-title {
  color: white;
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 0 10px rgba(64, 115, 255, 0.5);
}
.login-input-group {
  margin-bottom: 18px;
}
.login-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 10, 30, 0.5);
  border: 1px solid rgba(64, 115, 255, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 5px;
}
.login-input:focus {
  outline: none;
  border-color: rgba(100, 180, 255, 0.8);
  box-shadow: 0 0 10px rgba(64, 115, 255, 0.3);
}
.login-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(64, 115, 255, 0.8), rgba(0, 80, 200, 0.8));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.login-submit:hover {
  background: linear-gradient(135deg, rgba(80, 140, 255, 0.9), rgba(0, 100, 220, 0.9));
  box-shadow: 0 0 15px rgba(64, 115, 255, 0.5);
}
.login-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.login-close:hover {
  color: white;
  transform: rotate(90deg);
}


/* 退出弹窗 */
.confirm-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, rgba(16, 42, 90, 0.9), rgba(8, 25, 60, 0.95));
  padding: 35px;
  width: 380px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(64, 115, 255, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s;
  z-index:100;

}

.confirm-dialog h3 {
  margin-top: 0;
  color: #FFFFFF;
  font-size: 24px;
}

.confirm-dialog p {
  color: #DBDBDB;
  font-size: 20px;
  margin-bottom: 30px;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.dialog-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.confirm-btn {
  background: linear-gradient(135deg, rgba(64, 115, 255, 0.8), rgba(0, 80, 200, 0.8));
  font-size: 20px;
  color: white;
}

.cancel-btn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  font-size: 20px;
  color: white;
}

.dialog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
