/* --- 基础布局 --- */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- 文字高亮 --- */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--md-default-fg-color);
  line-height: 1.3;
}
.hero-intro {
  font-size: 1.8rem;
  margin-top: 1rem;
  color: var(--md-default-fg-color--light);
  font-weight: 500;
}
.marker-highlight {
  background: linear-gradient(to bottom, transparent 60%, rgba(100, 108, 255, 0.25) 0%);
  padding: 0 6px;
  border-radius: 4px;
  color: var(--md-primary-fg-color);
}

/* --- 时间问候语 --- */
.greeting-container {
  text-align: center;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  padding: 12px 15px;
  border-radius: 12px;
  background-color: rgba(240, 240, 240, 0.5);
  border: 1px solid rgba(200, 200, 200, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.greeting-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
}
[data-md-color-scheme="slate"] .greeting-container {
  background-color: rgba(30, 41, 59, 0.6);
  border-color: rgba(80, 100, 140, 0.2);
}
[data-md-color-scheme="slate"] .greeting-text {
  color: #e0e0e0;
}

/* --- 3D 头像翻转特效 --- */
.hero-avatar {
  flex-shrink: 0;
  margin-left: 2rem;
}
.flip-glow-ultimate-imgs {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  perspective: 1200px; 
  z-index: 2;
}
.flip-glow-ultimate-imgs img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--md-default-bg-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backface-visibility: hidden; 
  transition: transform 0.8s cubic-bezier(.4,2,.6,1), box-shadow 0.3s ease;
  background: #fff;
}
.flip-glow-ultimate-front {
  z-index: 2;
  transform: rotateY(0deg);
}
.flip-glow-ultimate-back {
  z-index: 1;
  transform: rotateY(180deg);
}
.flip-glow-ultimate-imgs:hover .flip-glow-ultimate-front {
  transform: rotateY(-180deg);
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.flip-glow-ultimate-imgs:hover .flip-glow-ultimate-back {
  transform: rotateY(0deg);
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* --- 动态网格背景 Canvas --- */
#gridCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  pointer-events: none; 
  z-index: -1;
  mask: linear-gradient(to bottom, white 30%, transparent 90%);
  -webkit-mask: linear-gradient(to bottom, white 30%, transparent 90%);
}

/* --- 移动端响应式适配 --- */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column-reverse; 
    text-align: center;
    gap: 2rem;
  }
  .hero-avatar { margin-left: 0; }
  .hero-title { font-size: 2.5rem; }
  #gridCanvas { display: none; } 
}