/* =====================================================
   主页专属样式
   ===================================================== */

/* ── 主页个人卡片容器（绝对定位，悬浮在 hero 右侧） ── */
.hero-profile-card {
  position: absolute;
  right: 12%;
  top: 38%;
  transform: translateY(-50%);
  z-index: 20;
  width: 260px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 24px;
  padding: 28px 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(180, 160, 220, 0.18);
}

@media (max-width: 900px) {
  .hero-profile-card {
    top: auto;
    bottom: 6%;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ── 艺术字标题区 ── */
.blog-title-hero {
  position: absolute;
  left: 25%;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10;
  width: min(500px, 42%);
  text-align: center;
  padding: 40px 24px 32px;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
}

.title-art {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.title-decoration {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 108%;
  max-width: 820px;
  height: auto;
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-art-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.12em;
  color: transparent;
  background: linear-gradient(180deg, #6c8fdb 0%, #8e91df 46%, #b592e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 28px rgba(122, 143, 220, 0.22))
          drop-shadow(0 0 32px rgba(176, 147, 233, 0.20));
}

.hero-art-title span { display: block; }
.hero-art-title span + span { margin-top: 8px; }

.hero-art-subtitle {
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.22em;
  color: #344261;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75),
               0 8px 20px rgba(100, 125, 180, 0.20);
}

.star {
  margin: 0 10px;
  color: #7495dc;
  font-size: 0.9em;
}

/* SVG 装饰线 */
.deco-line {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
}
.deco-line-left  { stroke: rgba(134, 144, 218, 0.46); }
.deco-line-right { stroke: rgba(216, 139, 188, 0.42); }

.deco-feather {
  fill: rgba(238, 139, 177, 0.28);
  stroke: rgba(226, 130, 174, 0.22);
  stroke-width: 1;
  filter: drop-shadow(0 8px 18px rgba(220, 132, 180, 0.18));
}
.deco-feather-line {
  fill: none;
  stroke: rgba(222, 122, 170, 0.38);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.spark   { fill: rgba(255, 156, 203, 0.72); filter: drop-shadow(0 0 8px rgba(255, 156, 203, 0.70)); }
.spark-2 { fill: rgba(149, 169, 244, 0.72); }
.spark-3 { fill: rgba(255, 196, 222, 0.78); }

.blog-title-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 160px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 66%),
    radial-gradient(circle at 20% 40%, rgba(142, 170, 255, 0.18), transparent 46%),
    radial-gradient(circle at 80% 55%, rgba(255, 165, 210, 0.18), transparent 48%);
  filter: blur(18px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .blog-title-hero {
    left: 50%;
    top: 32%;
    transform: translateX(-50%);
    width: 90%;
  }
}

/* ── 首页最新文章面板 ── */
.home-recent {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  z-index: 10;
  padding: 14px 20px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: 0 8px 40px rgba(102,126,170,0.14);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.home-recent-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.home-recent-title { font-size: 14px; font-weight: 700; color: #35405c; }
.home-recent-star  { color: #8c72dc; margin-right: 6px; }
.home-recent-more  { font-size: 13px; color: #8c72dc; text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.home-recent-more:hover { opacity: 1; }
.home-recent-grid  { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }

.home-post-card {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.76);
  box-shadow: 0 4px 16px rgba(102,126,170,0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.home-post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(102,126,170,0.16); }
.home-post-placeholder { cursor: default; }
.home-post-placeholder:hover { transform: none; box-shadow: 0 4px 16px rgba(102,126,170,0.10); }

.home-post-thumb { height: 130px; overflow: hidden; flex-shrink: 0; }
.home-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-post-card:not(.home-post-placeholder):hover .home-post-thumb img { transform: scale(1.06); }
.home-post-no-cover {
  width: 100%; height: 130px;
  background: linear-gradient(135deg, rgba(141,162,255,0.18), rgba(255,159,199,0.18));
}

.home-post-info { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.home-post-cat {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
  font-size: 11px; color: #8a6fd4;
  background: rgba(245,236,255,0.72); border: 1px solid rgba(255,255,255,0.76);
}
.home-post-info h3 { margin: 0 0 6px; font-size: 14px; color: #35405c; line-height: 1.45; }
.home-post-info p  { margin: 0; color: #73809c; font-size: 12px; line-height: 1.6; flex: 1; }
.home-post-meta    { margin-top: 10px; font-size: 11px; color: #9aa6bd; }
.home-placeholder-text { opacity: 0.25; }
