
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'ZCOOL KuaiLe', 'Segoe UI', sans-serif;
  background: url('') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  animation: fadeIn 1s ease;
}




.lang-select-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 4px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#custom_lang {
  font-size: 14px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  font-family: "ZCOOL KuaiLe", "PingFang SC", "Segoe UI", sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
  appearance: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#custom_lang:hover {
  background-color: #f9f9f9;
}

#custom_lang:focus {
  outline: none;
  box-shadow: 0 0 0 2px #aad8ff;
}

/* 📱 手机适配 */
@media screen and (max-width: 600px) {
  .lang-select-wrapper {
    top: 12px;
    right: 12px;
    padding: 2px 6px;
  }

  #custom_lang {
    font-size: 12px;
    padding: 6px 12px;
    background-position: right 8px center;
  }
}
.monitor-card {
  opacity: 0;
  transform: translateY(40px);
}
.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.stat-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.stat-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}


/* 头像和卡片都设置相对定位容器 */
.card, .header {
  position: relative;
  overflow: hidden;
}
.avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #fda4d4;
  cursor: pointer;
}

.avatar:active {
  transform: scale(0.95);
}
.header {
  width: 1020px;
  margin: 15px auto 20px;
  text-align: center;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header img.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 26px;
  margin-bottom: 5px;
  color: #fdddfd;
}

.header p {
  font-size: 14px;
  color: #fff;
  opacity: 0.85;
}

.nav {
  margin-top: 20px;
}

.nav button {
  margin: 5px;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nav button:hover {
    
  background: #ffc0cb;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px #fda4d4;
}

/* 内容总容器 */
.content-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
}

/* 卡片排列容器 */
.content {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

/* 卡片样式 */
.card {
  width: 320px;
  min-height: 288px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(255,192,203,0.5);
}

/* 🌸 二次元标题样式 */
.card h2 {
  font-size: 24px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1.2px;
  font-family: 'ZCOOL KuaiLe', sans-serif;

  background: linear-gradient(90deg, #ffaad4, #a1c4fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 1px 2px rgba(255, 182, 193, 0.5),
    0 2px 6px rgba(255, 182, 193, 0.3);
  
  position: relative;
}

/* 可选增强：底部柔光虚线 */
.card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 8px auto 0;
  background: linear-gradient(to right, #ffb6d5, #b5d5ff);
  opacity: 0.5;
  border-radius: 999px;
}


/* 内容文字样式 */
.card p, .card ul {
  text-align: center;
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
  padding: 0 10px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li::before {
  content: "🌸 ";
  color: #ffc0cb;
}

/* 内部角落插图样式 */
.card img.card-inner-illu,
.header img.header-inner-illu {
  position: absolute;
  width: 60px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.card .illu-left {
  bottom: 10px;
  left: 10px;
}

.card .illu-right {
  bottom: 10px;
  right: 10px;
}

.header .illu-header-left {
  bottom: 10px;
  left: 10px;
}

.header .illu-header-right {
  bottom: 10px;
  right: 10px;
}

.outer-illu {
  position: absolute;
  width: 80px;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
  opacity: 0.95;
}

/* 左边插图紧贴左侧外沿并略探出一点 */
.illu-left-outside {
  left: -10px;
}

/* 右边插图紧贴右侧外沿并略探出一点 */
.illu-right-outside {
  right: -10px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 移动端适配 */



@media (max-width: 1060px) {
  .header {
    width: 92%;
    padding: 20px;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 92%;
  }

  .card img.card-inner-illu,
  .header img.header-inner-illu,
  .outer-illu {
    display: none;
  }
}

#intro-animation {
  position: fixed;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff0f5, #d6f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease;
}

#intro-animation.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-loading img.loading-img {
  width: 180px;
  animation: zoomIn 1.4s ease forwards;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 18px;
  color: #ff69b4;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  animation: fadeIn 1.2s ease-in-out;
  text-align: center;
}

.loading-text .dot-loader {
  display: inline-block;
  margin-left: 8px;
}

.dot-loader span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background-color: #ff99cc;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot-loader span:nth-child(1) { animation-delay: -0.32s; }
.dot-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes zoomIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* 卡片滑入动画 */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  opacity: 0;
  transform: translateY(40px);
}


.card.animate-in {
  animation: slideUp 0.8s ease forwards;
}

.bounce-container {
  text-align: center;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 20px;
  line-height: 2;
}

.bounce-char {
  display: inline-block;
  transition: transform 0.3s ease;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-20px); }
  60%  { transform: translateY(8px); }
  100% { transform: translateY(0); }
}
@media (max-width: 768px) {
  #intro-animation {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center;     /* 水平居中 */
    text-align: center;
  }

  .intro-loading {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center;     /* 水平居中 */
  }

  .loading-img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
  }

  .loading-text {
    font-size: 16px;
    max-width: 90%;
    line-height: 1.6;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  }
}
#greeting-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 1.6;
  z-index: 9999;
  overflow: hidden;
  max-width: 260px;

  /* 动画 */
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  /* 内部样式（透明背景 + 毛玻璃） */
   background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 背景图片 + 毛玻璃图层 */
#greeting-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://img.picui.cn/free/2025/06/04/683fdfbb367e3.png');
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  z-index: -1;
}


/* 显示状态 */
#greeting-popup.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  #greeting-popup {
    top: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
    border-radius: 12px;
    line-height: 1.5;
  }

  #greeting-popup::before {
    background-size: cover;
    background-position: center;
  }
}
.monitor-card {
  position: relative;
  overflow: hidden;
}

.monitor-illu-left {
     position: absolute;
    bottom: -1px;
    left: 0px;
    width: 100px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.monitor-illu-right {
      position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

  /* 隐藏 translate.js 自动生成的语言选择器 */
  #translate {
    display: none !important;
  }
.bookmark-modal {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 240, 255, 0.2);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease forwards;
}

.bookmark-popup {
  background: linear-gradient(135deg, rgba(255,245,255,0.95), rgba(235,255,255,0.95));
  border-radius: 20px;
  padding: 30px 36px;
  max-width: 360px;
  width: 85%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  transform: translateY(-20px);
  animation: popupSlideIn 0.6s ease forwards;
}

.popup-text {
  font-size: 17px;
  color: #d63384;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.popup-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-pink, .btn-gray {
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-pink {
  background: linear-gradient(to right, #ff87b4, #ffaccf);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 138, 197, 0.4);
}

.btn-pink:hover {
  background: linear-gradient(to right, #ff6aa6, #ff9bc6);
}

.btn-gray {
  background: rgba(255, 255, 255, 0.75);
  color: #333;
}

.btn-gray:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* 载入动画（已有可保留） */
@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ✅ 新增：关闭动画 */
.popupSlideOut {
  animation: popupFadeOut 0.4s ease forwards;
}

.modalFadeOut {
  animation: modalFadeOut 0.4s ease forwards;
}

@keyframes popupFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
