/* ============ 博文的小屋 · 首页样式 ============ */
.home-wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 20px 60px;
}

.home-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.home-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(120deg, #ff5c8a 10%, #ff8fab 55%, #c86b98 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 14px rgba(255, 92, 138, 0.14);
}

.home-sub {
  margin-top: 12px;
  color: var(--ink-light);
  font-size: 14.5px;
  letter-spacing: 2px;
}

/* 头部小羊小兔装饰 */
.home-mascots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.mascot {
  width: 72px;
  height: 72px;
  animation: bob 3s ease-in-out infinite;
}
.mascot.bunny { animation-delay: .6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 板块卡片网格 */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.section-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 16px 22px;
  min-height: 160px;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(240, 65, 111, 0.22); }
.section-card:active { transform: scale(.97); }

.section-card .card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card .card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: 2px;
}

.section-card .card-desc {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 1px;
  text-align: center;
}

/* 卡片背景渐变区分 */
.section-card.mailbox { background: linear-gradient(160deg, #fff 0%, #ffeef4 100%); }
.section-card.timer   { background: linear-gradient(160deg, #fff 0%, #f0f7ff 100%); }
.section-card.coming  { background: linear-gradient(160deg, #fff 0%, #f7f0ff 100%); }

/* "即将上线"标签 */
.coming-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  color: #fff;
  background: rgba(200, 107, 152, 0.7);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* 底部装饰小元素条 */
.home-deco {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: .8;
}
.deco-item {
  width: 32px;
  height: 32px;
}

.home-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--ink-light);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  line-height: 1.9;
}

/* 返回首页链接（各子页面用）——小巧圆形图标按钮 */
.back-home {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: var(--pink-deep);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(240, 65, 111, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s, box-shadow .15s;
}
.back-home:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(240, 65, 111, 0.25); }
.back-home svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .home-wrap { padding: 32px 16px 50px; }
  .home-title { font-size: 34px; letter-spacing: 4px; }
  .section-card { min-height: 140px; padding: 22px 12px 18px; }
  .section-card .card-icon { width: 54px; height: 54px; }
  .section-card .card-title { font-size: 16px; }
}
