/* ============ 首页 2.0 · 星夜档案 + 照片墙 ============ */
body.home-page {
  background: #2a1220;
  background-image: radial-gradient(1000px 620px at 50% -12%, #7d2c55 0%, #4b1b33 48%, #2a1220 100%);
  background-attachment: fixed;
}
body.home-page .hearts span { color: rgba(255, 190, 214, .26); }

.home-wrap { position: relative; z-index: 1; max-width: 1040px; }

/* ---------- 首屏 ---------- */
.hs-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 36px 34px;
  margin-bottom: 24px;
  border-radius: 26px;
  text-align: center;
  color: #fff;
  background: radial-gradient(1100px 480px at 50% -20%, #8d315e 0%, #5b1f3c 48%, #37142a 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 26px 60px rgba(42, 8, 24, .58);
}
.hs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 92, 138, .24), transparent 46%),
    radial-gradient(circle at 86% 18%, rgba(255, 168, 200, .18), transparent 44%);
}
.hs-stars { position: absolute; inset: 0; pointer-events: none; }
.hs-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: hsTwinkle 3.4s ease-in-out infinite;
}
@keyframes hsTwinkle {
  0%, 100% { opacity: .18; transform: scale(.8); }
  50% { opacity: .85; transform: scale(1.35); }
}
.hs-butterfly {
  position: absolute;
  right: 34px;
  top: 28px;
  font-size: 42px;
  filter: drop-shadow(0 10px 18px rgba(255, 92, 138, .45));
  animation: hsFloat 5.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes hsFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
.hs-eyebrow {
  position: relative;
  font-size: 11.5px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, .55);
}
.hs-title {
  position: relative;
  margin: 16px 0 10px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 9px;
  background: linear-gradient(120deg, #fff 15%, #ffd0e0 52%, #ff9ec4 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hs-sub {
  position: relative;
  font-size: 15px;
  letter-spacing: 3px;
  color: #ffd0e0;
}
.hs-desc {
  position: relative;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
}
.hs-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.hs-btn {
  padding: 11px 24px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 13.5px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all .22s;
}
.hs-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.hs-btn.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #ff7aa2, #ff4f83);
  box-shadow: 0 12px 26px rgba(255, 79, 131, .36);
}
.hs-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
  margin-top: 32px;
}
.hs-stats div { text-align: center; }
.hs-stats b {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.hs-stats span { font-size: 11px; letter-spacing: 1px; color: rgba(255, 255, 255, .5); }

/* ---------- 简介 ---------- */
.hs-profile {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(135deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
  box-shadow: 0 18px 40px rgba(8, 4, 18, .35);
  color: #fff;
}
.hs-ava-wrap { position: relative; flex-shrink: 0; width: 108px; height: 108px; }
.hs-ava {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  background: linear-gradient(140deg, #ffb3cd, #ff5c8a);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 14px 32px rgba(255, 92, 138, .32);
}
.hs-ava img { width: 100%; height: 100%; object-fit: cover; }
.hs-ava-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .28);
  animation: hsSpin 22s linear infinite;
}
@keyframes hsSpin { to { transform: rotate(360deg); } }
.hs-bio h2 {
  margin: 0 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  letter-spacing: 2px;
}
.hs-bio p {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: rgba(255, 255, 255, .6);
}
.hs-bio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hs-tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #ffc6d8;
  background: rgba(255, 143, 171, .14);
  border: 1px solid rgba(255, 143, 171, .32);
}

/* ---------- 档案 ---------- */
.hs-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: #fff;
}
.hs-sec-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(#ff9ec4, #ff5c8a);
}
.hs-info { margin-bottom: 24px; }
.hs-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hs-cell {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all .2s;
}
.hs-cell:hover { background: rgba(255, 255, 255, .085); transform: translateY(-2px); }
.hs-cell label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .42);
}
.hs-cell b {
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.hs-keywords {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.hs-keywords h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .72);
}
.hs-kw { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-kw span {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #ffd6e4;
  background: linear-gradient(120deg, rgba(255, 92, 138, .2), rgba(255, 168, 200, .16));
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- 照片墙 ---------- */
.hs-wall { margin-bottom: 28px; }
.hs-wall-head { margin-bottom: 10px; }
.hs-wall-head p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* 大照片墙：一次性贴满 80~100 张小照片，可随意重叠 */
.hs-board {
  position: relative;
  height: clamp(520px, 74vh, 780px);
  overflow: hidden;
  border: 12px solid #7d4a56;
  border-radius: 24px;
  background-color: #5e2441;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 14px 14px;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .34), 0 24px 50px rgba(42, 8, 24, .46);
}

/* 底部时期时间轴 */
.hs-scroll-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .42);
}
.hs-timeline {
  position: relative;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 34px 10px 8px;
  scrollbar-width: none;
}
.hs-timeline::-webkit-scrollbar { display: none; }
.hs-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 43px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 156, 190, .12), rgba(255, 156, 190, .55), rgba(255, 156, 190, .12));
}
.hs-era {
  position: relative;
  flex: 1 0 92px;
  padding: 26px 6px 8px;
  border: none;
  background: none;
  border-radius: 12px;
  font-size: 12.5px;
  letter-spacing: .5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.hs-era::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 156, 190, .6);
  background: #40192c;
  transition: all .2s;
}
.hs-era:hover { color: #fff; }
.hs-era:hover::before { border-color: #ff8fb2; }
.hs-era.active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
}
.hs-era.active::before {
  background: linear-gradient(#ffb3cd, #ff5c8a);
  border-color: #ff9ec4;
  box-shadow: 0 0 0 4px rgba(255, 92, 138, .22), 0 6px 14px rgba(255, 79, 131, .45);
  transform: scale(1.15);
}
/* 三角彩旗 */
.hs-bunting {
  position: absolute;
  top: 2px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hs-bunting span {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #ff7aa2;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
}
.hs-bunting span:nth-child(2n) { border-top-color: #ffd36e; }
.hs-bunting span:nth-child(3n) { border-top-color: #ffb0c9; }
.hs-bunting span:nth-child(4n) { border-top-color: #fff0f4; }

.hs-wall-grid {
  position: absolute;
  inset: 42px 18px 24px;
}
.hs-photo {
  position: absolute;
  margin: 0;
  padding: 5px 5px 6px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .34);
  cursor: pointer;
  transform-origin: center;
  transition: transform .22s, box-shadow .22s;
  will-change: transform;
}
.hs-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #ececf1;
}
.hs-photo figcaption {
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.25;
  color: #5a3d4a;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-photo:hover {
  transform: scale(1.35) rotate(0deg) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .55);
  z-index: 120 !important;
}
.hs-wall-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  pointer-events: none;
}

/* 大图预览 */
.hs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 6, 18, .92);
  backdrop-filter: blur(4px);
}
.hs-lightbox.show { display: flex; }
.hs-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.hs-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}

.home-footer { color: rgba(255, 255, 255, .35); }

/* ---------- 新粉领航 · 回忆卷轴（首页） ---------- */
.scroll-board {
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .6), transparent 40%),
    linear-gradient(160deg, #f7efe2 0%, #f3e8d7 55%, #f6eee1 100%);
  border-radius: 20px;
  padding: 24px 20px 26px;
  box-shadow: 0 18px 40px rgba(42, 8, 24, .45);
  overflow: hidden;
}
.scroll-board::before,
.scroll-board::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(196,170,132,.35), rgba(226,207,174,.75), rgba(196,170,132,.35));
}
.scroll-board::before { top: 6px; }
.scroll-board::after { bottom: 6px; }

.scroll-body { position: relative; padding: 4px 0; }
.scroll-line {
  position: absolute;
  left: 92px;
  top: 6px;
  bottom: 6px;
  border-left: 2px dotted #cbb89a;
}
.scroll-list { display: flex; flex-direction: column; gap: 18px; }
.scroll-item { display: flex; align-items: flex-start; position: relative; }
.scroll-time {
  width: 80px;
  flex-shrink: 0;
  font-size: 12px;
  color: #8d7a5f;
  text-align: right;
  padding-top: 14px;
  letter-spacing: .2px;
}
.scroll-node {
  position: absolute;
  left: 85px;
  top: 15px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.scroll-node i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #b9a17c;
  background: #fbf6ec;
  display: block;
}
.scroll-card {
  position: relative;
  margin-left: 24px;
  flex: 1;
  min-width: 0;
  background: #fdf9ef;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  padding: 12px 40px 12px 14px;
  box-shadow: 0 3px 10px rgba(150, 125, 90, .07);
  color: #6d5c49;
}
.scroll-card h4 { margin: 0 0 5px; font-size: 13.5px; color: #5b4a38; }
.scroll-card p { margin: 0; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.scroll-emoji { position: absolute; right: 12px; bottom: 9px; font-size: 18px; opacity: .8; }
.scroll-end {
  margin: 18px 0 0 104px;
  font-size: 11.5px;
  color: #a4906f;
  letter-spacing: 2px;
}

@media (max-width: 760px) {
  .hs-title { font-size: 32px; letter-spacing: 5px; }
  .hs-hero { padding: 42px 18px 28px; }
  .hs-butterfly { font-size: 30px; right: 18px; top: 20px; }
  .hs-stats { gap: 26px; }
  .hs-profile { flex-direction: column; text-align: center; padding: 24px 18px; }
  .hs-bio-tags { justify-content: center; }
  .hs-info-grid { grid-template-columns: repeat(2, 1fr); }
  .hs-board { height: clamp(420px, 70vh, 620px); border-width: 8px; }
  .hs-wall-grid { inset: 32px 12px 18px; }
  .hs-era { flex: 1 0 76px; font-size: 12px; }
  .scroll-line { left: 62px; }
  .scroll-time { width: 54px; font-size: 11px; }
  .scroll-node { left: 55px; }
  .scroll-card { margin-left: 18px; padding-right: 34px; }
  .scroll-end { margin-left: 74px; }
}

