/* ===================================================================
   custom.css — Jiayu Liu personal site tweaks
   =================================================================== */

/* =============== 1) Author avatar: no crop, rectangular =============== */
.author__avatar,
.author__avatar img {
  border-radius: 6px !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-width: 220px;
  margin: 0 auto;
  display: block;
}

.author__avatar img,
.avatar img {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}

.author__avatar { text-align: center; margin-bottom: 1rem; }

@media (max-width: 768px) { .author__avatar img { max-width: 150px; } }

.author__content { margin-top: -0.25rem; }

/* ===================== 2) Force light theme ===================== */
html,
html[data-theme="dark"] { background: #fff !important; color: #222 !important; }

a { color: #0077b6; }
a:hover { color: #005a87; text-decoration: none; }

/* ===================== 4) Page & sidebar subtle tweaks ===================== */
.page__content { scroll-margin-top: 90px; }

@media (max-width: 925px) { .sidebar { padding-top: 0.5rem; } }

.page__footer, .page__footer:before, .page__footer:after {
  display: none !important;
}

.page__footer {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 标题大小（保留一份即可，避免冲突） */
.site-title, .site-title a { font-size: 1.25rem; line-height: 1.2; font-weight: 700; color:#111 !important; }
.greedy-nav a { padding: 0.4rem 0.6rem; }

/* ===== 手机端把 name / bio 居中（关键） ===== */
@media (max-width: 768px) {
  .author__content,
  .author__content .author__name,
  .author__content .author__bio {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    width: 100%;
  }
  .author__avatar + .author__content { align-self: center; }
}
