:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #2d2a32;
  --text-soft: #8a8791;
  --accent: #ff8a5c;
  --accent-2: #7c8cf8;
  --border: #eeece8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(45, 42, 50, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 鼠标跟随小星星 ---------- */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  animation: twinkle 0.8s ease-out forwards;
}

@keyframes twinkle {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -160%) scale(1.1) rotate(60deg);
    opacity: 0;
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 48px;
}

.avatar-wrap {
  position: relative;
  margin-bottom: 28px;
}

.avatar {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 56px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.avatar:hover {
  transform: scale(1.08) rotate(-6deg);
}

.avatar-tag {
  position: absolute;
  top: -8px;
  right: -92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-soft);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  animation: pop-in 0.6s 0.6s forwards;
  white-space: nowrap;
}

@keyframes pop-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 打字机 ---------- */
.typing-wrap {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-soft);
  min-height: 1.9em;
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  animation: blink 0.85s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.bio {
  max-width: 520px;
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ---------- 按钮 ---------- */
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 6px 18px rgba(45, 42, 50, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(45, 42, 50, 0.26);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  transform: translateY(-3px);
}

/* ---------- 联系方式 ---------- */
.contact {
  padding: 64px 0 40px;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-8deg); }
  60% { transform: rotate(12deg); }
  80% { transform: rotate(-4deg); }
}

.section-sub {
  color: var(--text-soft);
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(45, 42, 50, 0.1);
}

.card-icon {
  font-size: 30px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(-8deg);
}

.card-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 6px;
}

.card-value {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.heart {
  color: var(--accent);
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  40% { transform: scale(1); }
}

/* ---------- 滚动淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 大鸡腿弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(45, 42, 50, 0.45);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal-box {
  position: relative;
  max-width: 380px;
  width: 100%;
  background: var(--surface);
  border-radius: 24px;
  padding: 22px 22px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(45, 42, 50, 0.28);
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--accent);
  color: #fff;
}

.modal-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.modal-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-btn {
  display: inline-block;
}

.modal-overlay[hidden] {
  display: none;
}

/* ---------- 神秘地方 ---------- */
.secret-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 140, 248, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 138, 92, 0.08), transparent 40%),
    var(--bg);
}

.secret-page {
  width: 100%;
  max-width: 860px;
  padding: 40px 24px;
}

.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 70vh;
  justify-content: center;
}

.gate-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.gate-icon {
  font-size: 52px;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gate-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.gate-sub {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.gate-form {
  display: flex;
  gap: 10px;
}

.gate-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(124, 140, 248, 0.15);
}

.gate-btn {
  flex-shrink: 0;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.gate-error {
  display: none;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #e05a5a;
}

.gate-error.show {
  display: block;
  animation: fade-up 0.3s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.secret-back {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.secret-back:hover {
  color: var(--text);
}

/* ---------- 图片墙 ---------- */
.gallery {
  text-align: center;
}

.gallery-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.gallery-sub {
  color: var(--text-soft);
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 18px 36px rgba(45, 42, 50, 0.12);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ---------- 主页神秘链接 ---------- */
.secret-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secret-link:hover {
  opacity: 1;
  color: var(--accent-2);
  transform: translateY(-2px);
}

/* ---------- 驱魔界面 ---------- */
.exorcist-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(120, 0, 0, 0.55), transparent 65%),
    rgba(15, 2, 2, 0.92);
  backdrop-filter: blur(3px);
  padding: 20px;
  animation: exorcist-flash 0.5s ease;
}

@keyframes exorcist-flash {
  0% { background: rgba(200, 0, 0, 0.9); }
  100% {
    background:
      radial-gradient(circle at 50% 30%, rgba(120, 0, 0, 0.55), transparent 65%),
      rgba(15, 2, 2, 0.92);
  }
}

.exorcist-box {
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  background: #1a0808;
  border: 1px solid #5c1616;
  border-radius: 24px;
  padding: 26px 22px 28px;
  box-shadow: 0 0 60px rgba(180, 0, 0, 0.4);
  animation: exorcist-shake 0.6s ease 0.4s;
}

@keyframes exorcist-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(10px) rotate(1deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.exorcist-title {
  color: #ff5555;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
  animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(255, 60, 60, 0.8); }
  50% { opacity: 0.75; text-shadow: 0 0 4px rgba(255, 60, 60, 0.4); }
}

.exorcist-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid #5c1616;
}

.exorcist-sub {
  color: #c98a8a;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.exorcist-btn {
  background: #ff5555;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(255, 60, 60, 0.3);
}

.exorcist-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 60, 60, 0.45);
}

.exorcist-overlay[hidden] {
  display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .avatar-tag {
    display: none;
  }
}
