/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
}


body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  position: relative;
  background-color: #1a1a2e;
}

/* 预加载动画样式 */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: breathe 3s infinite ease-in-out;
}

.preloader-logo {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: #ff69b4;
  border-right-color: #00bfff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.preloader-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
  animation: pulse-preloader 1.5s infinite;
  position: relative;
  z-index: 1;
}

.preloader-text {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 2px;
  animation: blink-text 1.5s infinite;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
}

@keyframes pulse-preloader {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(255, 105, 180, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

/* 背景样式 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/neko.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: backgroundZoom 30s infinite alternate;
  filter: brightness(0.7);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(5px);
}

/* 容器样式 */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 5%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded .container {
  opacity: 1;
  transform: translateY(0);
}

/* 头部样式 */
header {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  /*display: flex;*/
  align-items: center;
  text-align: center;
  gap: 15px;
  position: relative;
}

/*.logo::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  top: -15px;*/
/*  left: -15px;*/
/*  width: calc(100% + 30px);*/
/*  height: calc(100% + 30px);*/
/*  background: linear-gradient(45deg, #ff69b4, #00bfff, #ff69b4);*/
/*  border-radius: 10px;*/
/*  opacity: 0.3;*/
/*  filter: blur(15px);*/
/*  z-index: -1;*/
/*  animation: gradientBorder 3s infinite alternate;*/
/*}*/

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.logo img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.9);
}

.logo h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(90deg, #ff69b4, #00bfff, #ff69b4);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientText 3s infinite alternate;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* 主要内容样式 */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.main-title {
  font-size: 2rem;
  margin-bottom: 5px;
  line-height: 1.4;
  position: relative;
  display: inline-block;
  padding: 0px 4%;
}

.main-title::before {
  content: "\2605";
  position: absolute;
  left: -10px;
  top: 0;
  color: #ff69b4;
  animation: twinkle 2s infinite;
}

.main-title::after {
  content: "\2605";
  position: absolute;
  right: -10px;
  top: 0;
  color: #00bfff;
  animation: twinkle 2s infinite 0.5s;
}

.main-title span {
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #ff69b4, #00bfff, #ff69b4);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientText 3s infinite alternate;
}

.description {
  font-size: 1.1rem;
  line-height: 2.3;
  margin-top: 20px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  display: inline-block;
  padding: 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff69b4, #00bfff, transparent);
}

.highlight {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 10px 0;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #ff69b4, #00bfff, #ff69b4);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientText 3s infinite alternate;
  position: relative;
}

/*.highlight::before, .highlight::after {*/
/*  content: "✧";*/
/*  position: absolute;*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  font-size: 1.4rem;*/
/*  color: #ff69b4;*/
/*}*/

.highlight::before {
  left: -20px;
}

.highlight::after {
  right: -20px;
}

/* 图片容器 */
.image-container {
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.image-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #ff69b4, #00bfff, #ff69b4);
  border-radius: 22px;
  animation: gradientBorder 3s infinite alternate;
}

.feature-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-container:hover .feature-image {
  transform: scale(1.03);
}

/* 按钮样式 */
.buttons {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  position: relative;
  z-index: 2;
}

.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 10px;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 16px 25px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.7);
  border: none;
  cursor: pointer;
  z-index: 1;
  min-width: 180px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 7px 20px rgba(106, 17, 203, 0.6);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(106, 17, 203, 0.4);
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-content::before {
  content: "\276F";
  margin-right: 8px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-content::before {
  transform: translateX(3px);
}

.connection-status {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  position: relative;
}

.connection-status::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 40%;
  background-color: #ccc;
  transition: background-color 0.3s ease;
}

.connection-status::after {
  content: attr(data-ms);
  margin-left: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}

.connection-status.success::after,
.connection-status.error::after {
  opacity: 1;
}

.connection-status.success::before {
  background-color: #4caf50;
  box-shadow: 0 0 5px #4caf50;
}

.connection-status.success::after {
  color: #4caf50;
  opacity: 1;
}

.connection-status.error::before {
  background-color: #f44336;
  box-shadow: 0 0 5px #f44336;
}

.connection-status.error::after {
  color: #f44336;
  opacity: 1;
}

.connection-status.testing::before {
  animation: blink 1s infinite;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.5), rgba(0, 191, 255, 0.5), transparent);
}

footer p {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
}

footer p::before, footer p::after {
  content: "\2661";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(255, 105, 180, 0.7);
}

footer p::before {
  left: -10px;
}

footer p::after {
  right: -10px;
}

/* 添加额外的二次元风格提示文字样式 */
.anime-tips {
  font-size: 14px;
  line-height: 1.5;
  margin: 15px auto;
  color: rgba(255, 255, 255, 0.9);
}

.anime-tips p {
  margin: 5px 0;
}

/* 樱花飘落特效 */
.sakura {
  position: absolute;
  width: 15px;
  height: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff69b4" stroke-width="1"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"/><path d="M12 6l2 4h-4l2-4z"/><path d="M12 18l-2-4h4l-2 4z"/><path d="M6 12l4-2v4l-4-2z"/><path d="M18 12l-4 2v-4l4 2z"/></svg>') no-repeat center center;
  pointer-events: none;
  z-index: 100;
  opacity: 0.7;
  animation: fall 10s linear infinite;
}

/* 动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
  }
}

@keyframes backgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes blink {
  0%,
  100% {
    background-color: #ffc107;
    box-shadow: 0 0 5px #ffc107;
  }
  50% {
    background-color: #ccc;
    box-shadow: none;
  }
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes colorChange {
  0% {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
  }
  50% {
    color: #00bfff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
  }
  100% {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
  }
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* 添加新的动画效果 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 点击特效 */
.click-effect {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  pointer-events: none;
  animation: click-animation 0.8s linear forwards;
  z-index: 9999;
}

@keyframes click-animation {
  0% {
    opacity: 1;
    width: 2px;
    height: 2px;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  100% {
    opacity: 0;
    width: 2px;
    height: 2px;
    transform: translate(-50%, -50%) scale(40);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0);
  }
}

/* 涟漪效果 */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.6s linear forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-animation {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* 打字效果光标 */
.typing-cursor {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes char-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .main-title {
    font-size: 1.6rem;
  }
  
  .buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 0.3fr);
    gap: 15px;
    justify-items: center;
  }
  
  .buttons-container a:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 100px;
  }

  .btn {
    width: 100%;
    max-width: 150px;
  }

  .highlight::before, .highlight::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .main-title {
    font-size: 1.3rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .highlight {
    font-size: 1.1rem;
  }
  
  .buttons-container {
    gap: 10px;
  }
  
  .btn {
    padding: 15px 15px;
    font-size: 0.9rem;
    min-width: 140px;
    max-width: 140px;
  }
  
  .connection-status::after {
    font-size: 0.7rem;
    margin-left: 3px;
  }
}