/* 首页封面 */
.hero-cover {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.typing-text {
  display: inline-block;
}

.cursor {
  animation: blink 1s infinite;
  font-weight: normal;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-tag {
  padding: 6px 16px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #a18cd1;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all var(--transition-normal);
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* 装饰元素 */
.decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.sakura {
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23fff' d='M50 10c-2 15-15 20-25 18 10 10 8 25 0 35 12 2 25-5 30 15 5-20 18-13 30-15-8-10-10-25 0-35-10 2-23-3-25-18z' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 40px;
  animation: sakuraFall 20s linear infinite;
  opacity: 0.5;
}

.star {
  width: 20px;
  height: 20px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 3s ease-in-out infinite;
}
.star-1 { top: 20%; left: 15%; animation-delay: 0.5s; }
.star-2 { top: 30%; right: 20%; animation-delay: 1.5s; }

.bubble {
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  animation: floatUp 8s ease-in-out infinite;
}
.bubble-1 { width: 60px; height: 60px; bottom: 20%; left: 10%; }
.bubble-2 { width: 40px; height: 40px; bottom: 30%; right: 15%; animation-delay: 2s; }

/* 关于我模块（与关于页作者名片同步） */
.profile-card {
  display: flex;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-card .about-avatar {
  width: 180px;
  height: 180px;
}
.avatar-sticker {
  position: absolute;
  right: -6px;
  bottom: -8px;
  padding: 5px 12px;
  font-size: 13px;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.profile-name {
  font-size: 33px;
  margin-bottom: 6px;
}
.profile-tagline {
  font-size: 21px;
  color: var(--accent);
  margin-bottom: 14px;
}
.profile-desc {
  font-size: 21px;
  color: var(--sub);
  line-height: 1.8;
  text-indent: 2em;
}

.profile-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.stat-item {
  min-width: 120px;
  padding: 10px 16px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-item strong {
  display: block;
  font-size: 19px;
}
.stat-item span {
  font-size: 17px;
  color: var(--sub);
}

/* 相册精选预览（首页大图网格：桌面 2 列，移动端 1 列） */
.album-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 100%;
}
.album-item {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: all var(--transition-normal);
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.album-item:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
body.dark .album-item {
  background: linear-gradient(90deg, #333 25%, #3a3a3a 50%, #333 75%);
  background-size: 200% 100%;
}
.album-item.loaded {
  animation: none;
  background: none;
}
.album-item:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 动画关键帧 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes sakuraFall {
  from { background-position: 0 0; }
  to { background-position: 100px 1000px; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-tags { flex-wrap: wrap; }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .profile-card .about-avatar {
    width: 145px;
    height: 145px;
  }
  .profile-name {
    font-size: 27px;
  }
  .profile-tagline {
    font-size: 17px;
  }
  .profile-desc {
    font-size: 17px;
  }
  .profile-stats {
    justify-content: center;
  }
  .album-wrap {
    grid-template-columns: 1fr;
  }
  .album-item,
  .album-item:last-child {
    aspect-ratio: 16 / 10;
  }
}