/* ===== 旧日星河 · Oldmilkyway ===== */

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

:root {
  --ink: #3a2a4a;
  --ink-soft: #6b4f86;
  --ink-light: #8a7099;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 12px 48px rgba(40, 24, 64, 0.35);
}

html, body {
  height: 100%;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

/* ===== 背景层 ===== */
.sky {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* 背景图：哥哥发的两张少女图 */
  background-image: url('/assets/bg-1920.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 蒙版层：让前景文字始终清晰 + 增添氛围 */
.sky::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* 下五分之一米白色蒙版（柔和过渡，跟背景米黄调一致） */
    linear-gradient(to top,
      rgba(253, 248, 240, 0.78) 0%,
      rgba(253, 248, 240, 0.58) 12%,
      rgba(253, 248, 240, 0.30) 18%,
      rgba(253, 248, 240, 0.12) 22%,
      transparent 25%),
    /* 整体径向暗调（中间亮，边缘暗，更梦幻） */
    radial-gradient(ellipse at 50% 45%,
      rgba(40, 24, 64, 0.18) 0%,
      rgba(40, 24, 64, 0.32) 100%);
}

/* ===== 浮动的樱花（点缀） ===== */
.sakura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sakura span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 200, 230, 0.85) 0%, transparent 70%);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  opacity: 0.55;
  animation: fall linear infinite;
}

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

/* ===== 玻璃拟态卡片 ===== */
.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 48px 36px 32px;

  /* 半透明 + 模糊（玻璃效果） */
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);

  text-align: center;
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ===== 头像 ===== */
.avatar-ring {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b3d6, #a8c4f5);
  box-shadow: 0 6px 24px rgba(40, 24, 64, 0.4);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: block;
}

/* ===== 文案 ===== */
.headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #6b4f86, #3a2a4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.headline-en {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.bio {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.95;
  margin-bottom: 28px;
  padding: 0 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* ===== 链接 ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  min-height: 0;
}

.links a {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 24, 64, 0.3);
}

/* ===== 签名 ===== */
.sig {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  padding-top: 18px;
  border-top: 1px dashed rgba(107, 79, 134, 0.4);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* ===== ICP 备案号 ===== */
.beian {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 5;
  text-align: center;
  pointer-events: none;  /* 不拦截背景点击 */
}

.beian a {
  pointer-events: auto;  /* 但 a 本身可点 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2a1a3a;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 22px rgba(40, 24, 64, 0.32);
  transition: all 0.25s ease;
}

.beian a:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 24, 64, 0.4);
}

.beian-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sky {
    background-image: url('/assets/bg-1024.webp');
  }
}

@media (max-width: 480px) {
  .card { padding: 36px 24px 24px; border-radius: 22px; }
  .headline { font-size: 26px; }
  .avatar-ring { width: 110px; height: 110px; margin-bottom: 18px; }
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}