@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
  /* === 梦幻二次元配色 === */
  --dream-primary: #6B8DD6;
  --dream-deep: #4A6FC0;
  --dream-soft: #8BA8E8;
  --dream-light: #B8C8F0;
  --dream-glow: #D0DDF8;
  --dream-mist: #E8EEFC;
  --dream-pale: #F2F5FC;

  --accent-pink: #E8A0C8;
  --accent-pink-soft: rgba(232, 160, 200, 0.22);
  --accent-purple: #B090D8;
  --accent-purple-soft: rgba(176, 144, 216, 0.18);
  --accent-gold: #F0C880;
  --accent-gold-soft: rgba(240, 200, 128, 0.2);
  --accent-mint: #80D4C0;

  --text-deep: #2D1B4E;
  --text-main: #4A3A6A;
  --text-sub: #6A5A8A;
  --text-muted: #9A8AB0;

  --success: #58B898;
  --warn: #D4A858;
  --error: #D47878;

  --shadow-soft: 0 8px 32px rgba(75, 60, 120, 0.12);
  --shadow-medium: 0 12px 40px rgba(75, 60, 120, 0.18);
  --shadow-glow: 0 0 30px rgba(107, 141, 214, 0.25);
  --shadow-pink: 0 0 30px rgba(232, 160, 200, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(139, 168, 232, 0.4);
  --glass-border-hover: rgba(107, 141, 214, 0.6);

  --line: rgba(139, 168, 232, 0.32);
  --site-bg: url("/data/background/IMG1766483671387.jpg");

  --bg-base: #0d1117;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text-deep);
  background-color: var(--bg-base);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  background-color: #0d1117;
  background-image: var(--site-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 梦幻环境光晕 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(107, 141, 214, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232, 160, 200, 0.12), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(176, 144, 216, 0.08), transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 30, 0.38);
  z-index: 2;
  pointer-events: none;
}

.home-container,
.page-shell {
  position: relative;
  z-index: 3;
}

/* === 核心玻璃卡片 === */
.glass-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(240, 244, 255, 0.82) 100%
  );
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.glass-card:hover {
  box-shadow:
    var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: var(--glass-border-hover);
}

/* === 首页 === */
.page-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

/* 漂浮装饰粒子 */
.particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  left: 10%;
  top: 100%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  background: rgba(232, 160, 200, 0.7);
  left: 25%;
  top: 100%;
  animation-duration: 15s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  background: rgba(176, 144, 216, 0.6);
  left: 45%;
  top: 100%;
  animation-duration: 10s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  background: rgba(240, 200, 128, 0.7);
  left: 65%;
  top: 100%;
  animation-duration: 14s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.6);
  left: 80%;
  top: 100%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  width: 3px;
  height: 3px;
  background: rgba(128, 212, 192, 0.7);
  left: 15%;
  top: 100%;
  animation-duration: 16s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  width: 5px;
  height: 5px;
  background: rgba(232, 160, 200, 0.6);
  left: 55%;
  top: 100%;
  animation-duration: 13s;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  left: 90%;
  top: 100%;
  animation-duration: 17s;
  animation-delay: 2.5s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-10vh) scale(1);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) scale(0.5);
    opacity: 0;
  }
}

.home-container {
  width: min(600px, 100%);
  text-align: center;
  margin: 0;
  padding: 28px 28px 16px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 标题 */
.title-wrapper {
  display: inline-block;
  margin-bottom: 36px;
}

.site-title {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: #ffffff;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(107, 141, 214, 0.3),
    0 0 100px rgba(232, 160, 200, 0.15);
  animation: titleDream 5s ease-in-out infinite alternate;
}

@keyframes titleDream {
  0% {
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.35),
      0 0 40px rgba(107, 141, 214, 0.25),
      0 0 80px rgba(232, 160, 200, 0.1);
  }
  50% {
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.35),
      0 0 60px rgba(107, 141, 214, 0.35),
      0 0 100px rgba(232, 160, 200, 0.18),
      0 0 140px rgba(176, 144, 216, 0.1);
  }
  100% {
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.35),
      0 0 50px rgba(107, 141, 214, 0.3),
      0 0 90px rgba(232, 160, 200, 0.15);
  }
}

/* 入口按钮组 */
.entry-group {
  display: grid;
  gap: 16px;
}

/* 简约玻璃按钮 */
.entry-btn {
  text-decoration: none;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.entry-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.entry-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.entry-btn:hover::before {
  transform: translateX(100%);
}

.entry-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.entry-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.entry-icon svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
}

.entry-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.entry-title {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #ffffff;
  font-weight: 500;
}

.entry-desc {
  display: none;
}

/* === 页脚 === */
.site-footer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  width: min(100%, calc(100vw - 32px));
  padding: 0 16px;
  text-align: center;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.beian-link:hover {
  color: #D0DDF8;
  text-decoration: underline;
}

.beian-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.beian-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* === 页面通用 === */
.page-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 24px 16px 30px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(107, 141, 214, 0.1) 50%,
    rgba(232, 160, 200, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-bar h1 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 返回按钮 - 梦幻玻璃 */
.back-link {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(6, 10, 20, 0.15);
  transition: all 0.3s ease;
  font-size: 0.92rem;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 18px rgba(6, 10, 20, 0.22);
  transform: translateY(-1px);
}

.fade-up {
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(200, 210, 240, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 168, 232, 0.45);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 141, 214, 0.6);
}

/* === 选择高亮 === */
::selection {
  background: rgba(107, 141, 214, 0.25);
  color: var(--text-deep);
}

@media (max-width: 768px) {
  .page-home {
    padding: 16px;
  }

  .home-container {
    padding: 20px 16px 12px;
  }

  .entry-btn {
    padding: 14px 16px;
    gap: 12px;
  }

  .entry-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .site-title {
    text-align: center;
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .entry-title {
    font-size: 1.1rem;
  }

  .site-footer {
    gap: 8px 12px;
    bottom: 12px;
  }

  .beian-link {
    font-size: 0.82rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
