.profile-panel {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid rgba(80, 120, 180, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.86));
  box-shadow: 0 18px 45px rgba(30, 45, 80, 0.1);
}

[data-theme='dark'] .profile-panel {
  border-color: rgba(140, 170, 220, 0.2);
  background: linear-gradient(135deg, rgba(26, 31, 43, 0.94), rgba(34, 42, 59, 0.88));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(45, 70, 110, 0.22);
}

.profile-kicker {
  margin: 0 0 0.2rem;
  color: #2b7de9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
}

.profile-hero p:last-child {
  margin: 0;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.profile-links a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(80, 120, 180, 0.14);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

[data-theme='dark'] .profile-links a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 125, 233, 0.45);
  box-shadow: 0 10px 24px rgba(30, 70, 130, 0.12);
}

.profile-links span {
  color: #5b6b82;
  font-size: 0.78rem;
}

[data-theme='dark'] .profile-links span {
  color: #aeb8ca;
}

.profile-links strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }
}

/* ============ zjyt 项目展示页 ============ */

@keyframes zjyt-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero 头图卡片 */
.zjyt-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 2.4rem 2.2rem;
  margin-bottom: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #4f6df5 0%, #7a5af8 55%, #a855f7 100%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.28);
  animation: zjyt-rise 0.5s ease both;
}

.zjyt-hero::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  top: -90px;
  right: -60px;
}

.zjyt-hero::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  bottom: -70px;
  left: -40px;
}

.zjyt-hero > * {
  position: relative;
  z-index: 1;
}

.zjyt-hero-badge {
  display: inline-block;
  padding: 0.3em 0.95em;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.zjyt-hero-title {
  margin: 0.7rem 0 0.5rem;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.zjyt-hero-desc {
  margin: 0;
  max-width: 46em;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.zjyt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.zjyt-hero-meta span {
  padding: 0.35em 1em;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.zjyt-hero-meta b {
  font-size: 1rem;
  margin-right: 0.15em;
}

/* 小节标题 */
.zjyt-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.4rem 0 1.1rem;
}

.zjyt-section-bar {
  width: 5px;
  height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, #4f6df5, #a855f7);
}

.zjyt-section h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2d3d;
}

[data-theme='dark'] .zjyt-section h3 {
  color: #e8e8e8;
}

/* 技术栈徽章 */
.zjyt-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.zjyt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.9em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3c5bd9;
  background: rgba(79, 109, 245, 0.07);
  border: 1px solid rgba(79, 109, 245, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zjyt-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 109, 245, 0.18);
}

.zjyt-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #4f6df5);
}

[data-theme='dark'] .zjyt-tag {
  color: #aab6ff;
  background: rgba(122, 143, 255, 0.1);
  border-color: rgba(122, 143, 255, 0.25);
}

/* 手机截图画廊 */
.zjyt-phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.zjyt-phone {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: zjyt-rise 0.6s ease both;
}

.zjyt-phone:nth-child(1) { animation-delay: 0.04s; }
.zjyt-phone:nth-child(2) { animation-delay: 0.08s; }
.zjyt-phone:nth-child(3) { animation-delay: 0.12s; }
.zjyt-phone:nth-child(4) { animation-delay: 0.16s; }
.zjyt-phone:nth-child(5) { animation-delay: 0.20s; }
.zjyt-phone:nth-child(6) { animation-delay: 0.24s; }
.zjyt-phone:nth-child(7) { animation-delay: 0.28s; }
.zjyt-phone:nth-child(8) { animation-delay: 0.32s; }
.zjyt-phone:nth-child(9) { animation-delay: 0.36s; }
.zjyt-phone:nth-child(10) { animation-delay: 0.40s; }
.zjyt-phone:nth-child(11) { animation-delay: 0.44s; }

.zjyt-phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.zjyt-phone a {
  display: block;
  line-height: 0;
}

.zjyt-phone img {
  width: 100%;
  margin: 0;
  display: block;
}

.zjyt-phone figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.6rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #4a5568;
}

.zjyt-phone figcaption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f6df5, #a855f7);
}

[data-theme='dark'] .zjyt-phone {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .zjyt-phone:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

[data-theme='dark'] .zjyt-phone figcaption {
  color: #c9cdd4;
}

/* 横向宽图卡片（贡献图） */
.zjyt-wide {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: zjyt-rise 0.6s ease both;
}

.zjyt-wide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.zjyt-wide-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.zjyt-year {
  padding: 0.15em 0.75em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f6df5, #a855f7);
}

.zjyt-wide-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #4a5568;
}

[data-theme='dark'] .zjyt-wide {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .zjyt-wide-label {
  color: #c9cdd4;
}

.zjyt-wide a {
  display: block;
  line-height: 0;
}

.zjyt-wide img {
  width: 100%;
  margin: 0;
  display: block;
  border-radius: 8px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .zjyt-phones {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .zjyt-hero {
    padding: 1.6rem 1.3rem;
  }

  .zjyt-hero-title {
    font-size: 1.6rem;
  }

  .zjyt-phones {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .zjyt-wide {
    padding: 0.7rem 0.8rem 0.8rem;
  }
}

/* 封面图缩小 */
#recent-posts .recent-post-item .post_cover {
  width: 35%;
}

#recent-posts .recent-post-item .post_cover .post-bg {
  max-height: 220px;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  #recent-posts .recent-post-item .post_cover {
    height: 180px;
  }
}

/* 头像：取消旋转 */
.avatar-img img {
  border-radius: 50%;
  transition: none !important;
}

.avatar-img img:hover {
  transform: none !important;
}

/* 爱心缩小 */
.heart {
  width: 6px !important;
  height: 6px !important;
}

.heart:after,
.heart:before {
  width: 6px !important;
  height: 6px !important;
}

.heart:after {
  top: -3px !important;
}

.heart:before {
  left: -3px !important;
}
