/* style.css */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#loginBtn {
  padding: 8px 16px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo-container img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-container {
  /*max-width: 240px;*/
  width: 240px;
  font-size: 18px;
  line-height: 1.8;
}


.message-container p {
  font-size: xxx-large;
  text-align: center;
}

.login-container {
  /*max-width: 240px;*/
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-container input {
  width: 215px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-submit {
  padding: 12px;
  font-size: 16px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}


.hidden {
  display: none;
}

/* 添加过渡动画样式 */
.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 添加微信二维码样式 */
.wechat-qr-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #999;
  margin-bottom: 20px;
}

.back-button-container {
  display: flex;
  justify-content: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .logo-container img {
    width: 180px;
    height: 180px;
  }

  .message-container,
  .login-container {
    max-width: 90%;
  }

  .login-links {
    flex-direction: column;
    gap: 8px;
  }

  .login-links a {
    margin: 0;
  }
}

/* 登录面板容器 */
.login-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 320px;
  padding: 25px;
  background: rgba(0,0,0,0.65);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

/* 打字机文字 */
.typing-text {
  color: #00eaff;
  font-family: monospace;
  margin-bottom: 18px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00eaff;
  animation: typing 1.8s steps(20), cursor .7s infinite;
}

/* 输入框 */
.login-panel input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-bottom: 2px solid #00eaff;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 16px;
}

/* 按钮 */
.login-btn {
  width: 100%;
  padding: 10px;
  background: #00eaff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
  font-size: 16px;
}
.login-btn:hover {
  background: #00c4d4;
}

/* 动画 */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes cursor {
  from { border-right-color: #00eaff; }
  to { border-right-color: transparent; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -40%); }
}

/* 添加淡出动画样式 */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 登录成功页面的淡入动画 */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 进入登录后的布局容器 */
.after-login-container {
  display: flex;
  width: 100%;
  height: 100vh;
  padding: 40px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  animation: fadeInScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 左侧内容（原来的 logo + 文案） */
.left-panel {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-60px) scale(0.9);
  opacity: 0;
  animation: slideLeft 1.2s cubic-bezier(.17,.67,.54,1.48) forwards;
}

/* 竖线 */
.line-split {
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,255,255,0), #00eaff, rgba(0,255,255,0));
  margin: 0 40px;
  box-shadow: 0 0 6px #00eaff;
}

/* 右侧功能区 */
.right-panel {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding-top: 20px;
}

/* 单个功能块 */
.feature-box {
  background: linear-gradient(135deg, #ff6666, #ffcc33);
  border: 1px solid rgba(0,234,255,0.4);
  border-radius: 14px;
  padding: 20px;
  color: #00eaff;
  font-size: 24px; /* 增大字体 */
  font-weight: bold; /* 加粗字体 */
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0,234,255,0.2);
  transition: 0.3s;
  
  /* 居中显示文本 */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* 确保功能块有足够高度 */
  min-height: 100px;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 16px rgba(0,234,255,0.5);
}

/* 动画 */
@keyframes slideLeft {
  0% { transform: translateX(50px) scale(0.9); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes fadeIn {
  to { opacity: 1; pointer-events: auto; }
}