/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #dfe6ff;
  background: #070b21;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(7, 11, 33, 0.4);
  backdrop-filter: blur(12px);
  transition: background .3s;
}

.navbar.solid { background: rgba(7, 11, 33, 0.95); }

.logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover { color: #7ee8fa; }

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(124, 77, 255, .35), transparent 65%),
    radial-gradient(ellipse 55% 40% at 20% 75%, rgba(0, 149, 255, .28), transparent 65%),
    linear-gradient(180deg, #04061a 0%, #0a0f33 55%, #1a1f55 100%);
  overflow: hidden;
}

#sky { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 漂浮的行星 */
.planet {
  position: absolute;
  z-index: 1;
  opacity: .85;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(126, 232, 250, .35));
}

.planet-1 { font-size: 84px; top: 18%; right: 12%; animation-delay: 0s; }
.planet-2 { font-size: 52px; top: 60%; left: 10%; animation-delay: 1.6s; }
.planet-3 { font-size: 40px; top: 30%; left: 20%; animation-delay: 3s; }

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

/* 小火箭 */
.rocket {
  position: absolute;
  bottom: 14%;
  right: 18%;
  font-size: 40px;
  z-index: 1;
  transform: rotate(-45deg);
  animation: rocketHover 5s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 216, 110, .5));
}

@keyframes rocketHover {
  0%,100% { transform: rotate(-45deg) translate(0, 0); }
  50% { transform: rotate(-45deg) translate(14px, -18px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 20px;
}

.hero-sub {
  font-size: 15px;
  letter-spacing: 6px;
  color: rgba(255,255,255,.7);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 800;
  letter-spacing: 14px;
  line-height: 1.3;
  text-shadow: 0 0 40px rgba(96, 165, 250, .55);
}

.hero-title.accent {
  background: linear-gradient(90deg, #7ee8fa, #a78bfa, #ffd86e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 26px auto 34px;
  max-width: 560px;
  font-size: 16px;
  color: rgba(255,255,255,.82);
}

.btn {
  display: inline-block;
  padding: 13px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ee8fa, #a78bfa);
  color: #061031;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(126, 232, 250, .35);
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(167, 139, 250, .5); }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 22px;
  animation: bounce 1.6s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== 通用板块 ===== */
.section {
  padding: 90px 6vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 24px rgba(126, 232, 250, .35);
}

.section-sub {
  text-align: center;
  color: rgba(223, 230, 255, .55);
  margin: 10px 0 48px;
  font-size: 15px;
}

/* ===== 关于我 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

.avatar-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(126, 232, 250, .25);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ee8fa, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  box-shadow: 0 0 30px rgba(126, 232, 250, .45);
}

.avatar-card h3 { font-size: 22px; color: #fff; }
.avatar-card p { color: rgba(223, 230, 255, .7); font-size: 14px; }

.about-text p { margin-bottom: 14px; font-size: 16px; color: rgba(223, 230, 255, .88); }
.about-text b { color: #7ee8fa; }

.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  background: rgba(126, 232, 250, .12);
  border: 1px solid rgba(126, 232, 250, .35);
  color: #9ff0ff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
}

/* ===== 爱好 ===== */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
}

.hobby-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 22px;
  padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.hobby-card:hover {
  transform: translateY(-8px);
  border-color: rgba(126, 232, 250, .6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.hobby-icon { font-size: 40px; margin-bottom: 12px; }
.hobby-card h3 { color: #fff; margin-bottom: 8px; }
.hobby-card p { font-size: 14.5px; color: rgba(223, 230, 255, .65); }

/* ===== 作品 ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.work-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(126, 232, 250, .2);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}

.work-card:hover { transform: translateY(-6px); border-color: rgba(126, 232, 250, .55); }

.work-visual {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background:
    radial-gradient(circle at 30% 30%, rgba(167, 139, 250, .3), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(126, 232, 250, .22), transparent 60%),
    rgba(255, 255, 255, .04);
}

.work-card h3 {
  font-size: 17px;
  color: #ffd86e;
  padding: 16px 20px 4px;
}

.work-card p {
  font-size: 14px;
  color: rgba(223, 230, 255, .65);
  padding: 0 20px 20px;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6vw;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(6vw + 22px);
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7ee8fa, #a78bfa, #ffd86e);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(126, 232, 250, .5);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.time-point {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0a0f33;
  border: 3px solid #7ee8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(126, 232, 250, .4);
}

.time-card {
  flex: 1;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 18px 22px;
}

.time-card h3 { color: #7ee8fa; font-size: 17px; margin-bottom: 4px; }
.time-card p { font-size: 14.5px; color: rgba(223, 230, 255, .7); }

.time-card.future {
  background: linear-gradient(135deg, rgba(126, 232, 250, .18), rgba(167, 139, 250, .22));
  border-color: rgba(126, 232, 250, .45);
}

.time-card.future h3 { color: #ffd86e; }
.time-card.future p { color: rgba(255,255,255,.88); }

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(180deg, #0a0f33, #04061a);
  color: #fff;
  text-align: center;
  padding: 80px 20px 40px;
}

.quote-main {
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 2;
  text-shadow: 0 0 24px rgba(126, 232, 250, .4);
}

.quote-by {
  margin: 18px 0 40px;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  letter-spacing: 3px;
}

.footer-line {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ===== 滚动浮现动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .avatar-card { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .navbar { flex-direction: column; gap: 8px; padding: 10px 4vw; }
  .logo { font-size: 16px; }
  .nav-links { gap: 6px 22px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 13px; }

  .hero { min-height: 100svh; }
  .hero-title { letter-spacing: 6px; font-size: clamp(36px, 11vw, 56px); }
  .hero-sub { letter-spacing: 3px; font-size: 13px; }
  .hero-desc { font-size: 14.5px; }
  .btn { padding: 11px 32px; font-size: 15px; }
  .planet-1 { font-size: 56px; right: 6%; }
  .planet-2 { font-size: 38px; left: 6%; }
  .rocket { right: 10%; font-size: 30px; }

  .section { padding: 64px 5vw; }
  .section-title { font-size: 26px; }
  .section-sub { margin-bottom: 34px; }

  .hobby-grid { gap: 16px; }
  .hobby-card { padding: 22px 20px; }
  .works-grid { gap: 16px; }
  .work-card h3 { font-size: 16px; }

  .timeline { padding: 0 2vw; }
  .timeline::before { left: 24px; }
  .timeline-item { gap: 14px; }
  .time-point { width: 40px; height: 40px; font-size: 19px; }
  .time-card { padding: 14px 16px; }

  .footer { padding: 56px 16px 30px; }
  .quote-main { letter-spacing: 2px; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
  .hero-title { letter-spacing: 3px; }
  .tags { gap: 8px; }
  .tag { font-size: 12.5px; padding: 5px 12px; }
}
