/*!
 * ec-profile.css —— 首页个人简介卡片
 * 它挂在 #recent-posts 里（74% 的左栏），所以你看到的是「简介卡在上、文章在下」的
 * 一整列，右侧栏保持主题原本的 26% 宽度并排立在右边。
 */

.ec-profile {
  position: relative;
  margin: 0 0 20px;
  padding: 1.9rem 2rem 1.75rem;
  border-radius: var(--ec-radius, 18px);
  background: var(--ec-card-bg, rgba(8, 13, 24, 0.6));
  border: 1px solid var(--ec-border, rgba(255, 255, 255, 0.12));
  box-shadow: var(--ec-shadow, 0 26px 60px -26px rgba(2, 6, 23, 0.8));
  backdrop-filter: blur(var(--ec-blur, 0px)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--ec-blur, 0px)) saturate(170%);
  overflow: hidden;
  color: var(--ec-text-dim, #cfdcf2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ec-profile.is-in {
  opacity: 1;
  transform: none;
}

/* 顶部右侧的一团柔光，跟站点卡片的玻璃边缘呼应 */
.ec-profile__glow {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.28), transparent 62%);
  pointer-events: none;
  filter: blur(6px);
}

.ec-profile__inner {
  position: relative;
  z-index: 1;
}

.ec-profile__hello {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ec-text, #f2f7ff);
  line-height: 1.35;
}

.ec-profile__name {
  margin-left: 0.15rem;
  color: #8ea2ff;
  display: inline-flex;
  align-items: baseline;
}

.ec-profile__typed {
  white-space: pre;
}

/* 打字机光标 */
.ec-profile__caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background: #8ea2ff;
  animation: ec-profile-blink 1s steps(1) infinite;
  transform: translateY(0.16em);
}

@keyframes ec-profile-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ec-profile__greet {
  margin: 0 0 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #b9c6ff;
}

.ec-profile__intro {
  margin: 0;
  max-width: 54em;
  font-size: 0.94rem;
  line-height: 1.95;
  letter-spacing: 0.15px;
  color: var(--ec-text-dim, #cfdcf2);
}

.ec-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.ec-profile__tag {
  padding: 0.2rem 0.66rem;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  border-radius: 999px;
  border: 1px solid rgba(142, 162, 255, 0.32);
  background: rgba(99, 102, 241, 0.13);
  color: #aab8ff;
}

.ec-profile__jump {
  margin-top: 1.3rem;
  padding: 0.42rem 1rem;
  font-family: inherit;
  font-size: 0.84rem;
  color: #dfe4ff;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ec-profile__jump:hover {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(142, 162, 255, 0.45);
  transform: translateY(-1px);
}

.ec-profile__jump i {
  margin-left: 0.32rem;
  font-size: 0.74rem;
}

/* 窄屏（<900px 时主题会把 .layout 变单列）：简介卡跟文章一起占满宽度即可 */
@media screen and (max-width: 899px) {
  .ec-profile {
    padding: 1.6rem 1.35rem 1.5rem;
    margin-bottom: 18px;
  }
  .ec-profile__hello { font-size: 1.42rem; }
  .ec-profile__greet { font-size: 0.94rem; }
  .ec-profile__intro { font-size: 0.9rem; line-height: 1.9; }
  .ec-profile__glow { width: 260px; height: 260px; top: -80px; right: -60px; }
}

/* 更窄（<768px）：主题的 #recent-posts 内边距变小，简介卡跟着收 */
@media screen and (max-width: 768px) {
  .ec-profile { padding: 1.35rem 1.1rem 1.25rem; }
  .ec-profile__hello { font-size: 1.26rem; }
  .ec-profile__intro { font-size: 0.86rem; line-height: 1.85; }
}
