/* ================= 全局重置 ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 全屏欢迎层样式 */
#welcome-overlay {
  position: fixed;
  inset: 0;
  /* 等价于 top:0; right:0; bottom:0; left:0; */
  background: radial-gradient(circle at top, #abcde6, #babdbd);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* 欢迎卡片 */
.welcome-card {
  padding: 24px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform-origin: center;
}

/* 卡片旋转并向两侧“裂开”消失 */
.card-animate {
  animation: card-spin-split 1.6s ease-in-out forwards;
}

/* overlay 渐隐 */
.overlay-hide {
  opacity: 0;
  pointer-events: none;
}

/* 关键帧动画：先轻微缩放，然后快速旋转+拉伸+透明 */
@keyframes card-spin-split {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  30% {
    transform: scale(1.05) rotate(5deg);
  }

  60% {
    transform: scale(0.9) rotate(-10deg);
  }

  100% {
    /* 这里用 scaleX(4) 模拟向左右两侧“展开消失”的感觉 */
    transform: scaleX(4) scaleY(0.1) rotate(720deg);
    opacity: 0;
  }
}


body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* 防止滚动条 */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 背景图片 - 你可以替换这里的 URL */
  background: url("https://cdn.jsdelivr.net/gh/Flygreenbaby/Images@main/img/202502092051810.png") no-repeat center center/cover;
  color: #fff;
}

/* 背景遮罩，让文字更清晰 */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

/* ================= 主卡片 (毛玻璃效果) ================= */
.glass-container {
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  width: 800px;
  max-width: 90%;
  min-height: 450px;
  background: rgba(255, 255, 255, 0.1);
  /* 半透明白 */
  backdrop-filter: blur(15px);
  /* 核心：背景模糊 */
  -webkit-backdrop-filter: blur(15px);
  /* Safari 支持 */
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  animation: fadeIn 1.5s ease;
}

/* 左侧：个人信息区 */
.profile-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  /* 稍微深一点 */
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.5s;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar:hover {
  transform: rotate(360deg);
}

.name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.bio {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* 社交图标 */
.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-btn:hover {
  background: #fff;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 右侧：内容与功能区 */
.content-section {
  flex: 1.5;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 时间显示 */
.clock-container {
  text-align: right;
}

.time {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.date {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

/* 一言卡片 */
.hitokoto-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  margin: 30px 0;
  position: relative;
}

.hitokoto-text {
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
}

.hitokoto-from {
  text-align: right;
  font-size: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* 导航按钮 */
.nav-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.nav-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.nav-item i {
  margin-right: 10px;
  font-size: 20px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .glass-container {
    flex-direction: column;
    width: 90%;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    /* 允许内容过多时滚动 */
  }

  .profile-section {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
  }

  .content-section {
    padding: 30px 20px;
  }

  .clock-container {
    text-align: center;
    margin-bottom: 20px;
  }

  .time {
    font-size: 36px;
  }
}

.footer {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer a {
  color: inherit;
  margin: 0 8px;
  text-decoration: none;
}

.footer p {
  margin-top: 4px;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}