/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ff7eb3;
  --pink-soft: #ffd6e8;
  --pink-deep: #ff4f92;
  --pink-pale: #fff0f7;
  --purple: #b388ff;
  --purple-soft: #e8d7ff;
  --purple-pale: #f7f1ff;
  --cream: #fff5fa;
  --text: #5a3d52;
  --shadow: 0 10px 30px rgba(255, 126, 179, 0.25);
  --shadow-purple: 0 10px 30px rgba(179, 136, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Quicksand", "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #fff0f7 0%, #ffe9f3 40%, #f3e8ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景氛围光晕 */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}
body::before {
  top: -12%;
  right: -12%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, #ff9ec4 0%, transparent 70%);
}
body::after {
  bottom: -14%;
  left: -10%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, #c9a8ff 0%, transparent 70%);
}

/* ===== 飘落爱心背景 ===== */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hearts-bg .heart {
  position: absolute;
  top: -40px;
  font-size: 22px;
  opacity: 0.5;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ===== 顶部滚动应援横幅 ===== */
.top-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #ff9ec4, #ffc2dd, #ff9ec4);
  background-size: 200% 100%;
  color: #fff;
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 18px rgba(255, 79, 146, 0.35);
  animation: bannerShift 6s ease infinite;
}
@keyframes bannerShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.banner-heart { font-size: 1.3rem; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1);} 50% { transform: scale(1.25);} }
.banner-text {
  text-shadow: 0 1px 3px rgba(214, 51, 108, 0.4);
  min-width: 14ch;
  text-align: center;
}

/* ===== 主容器 ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 30px 0 10px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.avatar-ring {
  width: 150px; height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 0deg, #ff7eb3, #ffc2dd, #b388ff, #ff7eb3);
  box-shadow: var(--shadow);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.site-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 2.7rem;
  color: var(--pink-deep);
  margin-bottom: 6px;
}
.site-title .pink { color: var(--purple); }
.site-subtitle { font-size: 1.05rem; color: var(--purple); margin-bottom: 18px; }
.site-intro {
  max-width: 620px; margin: 0 auto;
  line-height: 1.9; font-size: 1.02rem;
  background: rgba(255,255,255,0.62);
  padding: 16px 22px; border-radius: 18px;
  border: 2px dashed var(--pink-soft);
}

/* ===== 板块卡片 ===== */
.sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 42px;
}
.card {
  background: rgba(255,255,255,0.86);
  border-radius: 26px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.card:nth-of-type(1) { animation-delay: 0.12s; }
.card:nth-of-type(2) { animation-delay: 0.28s; }
.card:hover { transform: translateY(-6px); }
.card-icon { font-size: 2.7rem; margin-bottom: 8px; }
.card-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 1.6rem; margin-bottom: 10px;
}
.card-desc { line-height: 1.8; margin-bottom: 22px; color: #7a5a6b; }

/* 粉色主题卡：YOONA */
.card-pink {
  border-color: var(--pink-soft);
  box-shadow: var(--shadow);
}
.card-pink:hover { box-shadow: 0 16px 42px rgba(255, 79, 146, 0.32); }
.card-pink .card-title { color: var(--pink-deep); }

/* 紫色主题卡：我的相册 */
.card-purple {
  border-color: var(--purple-soft);
  box-shadow: var(--shadow-purple);
}
.card-purple:hover { box-shadow: 0 16px 42px rgba(179, 136, 255, 0.32); }
.card-purple .card-title { color: #9b6fe0; }

/* 薄荷绿主题卡：我的项目 */
.card-teal {
  border-color: #9fd8cf;
  box-shadow: 0 10px 30px rgba(64, 180, 160, 0.16);
}
.card-teal:hover { box-shadow: 0 16px 42px rgba(64, 180, 160, 0.32); }
.card-teal .card-title { color: #2a9d8a; }
.card:nth-of-type(3) { animation-delay: 0.44s; }

/* 项目链接（沿用相册卡的两列网格与 hover 上浮，保持一致） */
.proj-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text);
  background: linear-gradient(90deg, #effaf6, #e0f5ee);
  border: 2px solid #9fd8cf;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.proj-link:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #40b4a0;
  box-shadow: 0 10px 24px rgba(64, 180, 160, 0.22);
}
.proj-emoji { font-size: 1.7rem; flex-shrink: 0; }
.proj-name {
  font-weight: 700;
  flex: 1;
  text-align: left;
  color: #2a9d8a;
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 1.15rem;
}
.proj-hint { color: #2a9d8a; font-size: 0.9rem; flex-shrink: 0; }

/* 相册链接 */
.album-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.album-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  background: linear-gradient(90deg, #fff0f7, #ffe3f1);
  border: 2px solid var(--pink-soft);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.album-link:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(255, 126, 179, 0.22);
}
.album-emoji { font-size: 1.7rem; flex-shrink: 0; }
.album-name {
  font-weight: 700;
  flex: 1;
  text-align: left;
  color: var(--pink-deep);
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 1.15rem;
}
.album-hint { color: var(--pink-deep); font-size: 0.9rem; flex-shrink: 0; }

/* APP 链接 */
.app-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  border-radius: 16px;
  padding: 15px 18px;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.app-link:hover { transform: translateY(-4px) scale(1.02); }
.app-emoji { font-size: 1.6rem; }
.app-name { font-weight: 700; flex: 1; text-align: left; }
.app-hint { font-size: 0.9rem; }
.app-link-pink {
  background: linear-gradient(90deg, #fff0f7, #ffe3f1);
  border: 2px solid var(--pink-soft);
}
.app-link-pink:hover { border-color: var(--pink); box-shadow: 0 6px 18px rgba(255, 126, 179, 0.18); }
.app-link-pink .app-hint { color: var(--pink-deep); }
.app-link-purple {
  background: linear-gradient(90deg, #f9f4ff, #f2e8ff);
  border: 2px solid var(--purple-soft);
}
.app-link-purple:hover { border-color: var(--purple); box-shadow: 0 6px 18px rgba(179, 136, 255, 0.18); }
.app-link-purple .app-hint { color: #9b6fe0; }

/* ===== 板块工具栏（搜索 + 计数）===== */
.section-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 126, 179, 0.32);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.section-search-icon { color: #d978a8; font-size: 1.05rem; flex-shrink: 0; }
.section-search {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  padding: 4px 0;
  min-width: 0;
}
.section-search::placeholder { color: #c89ab1; opacity: 0.85; }
.section-count {
  font-size: 0.78rem;
  color: #b07d96;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 翻页器 ===== */
.section-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #b07d96;
  flex-wrap: wrap;
}
.pager-btn {
  border: 1px solid rgba(159, 216, 207, 0.85);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 5px 11px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: #2a9d8a;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.pager-btn:hover:not(:disabled) {
  background: #effaf6;
  border-color: #40b4a0;
  transform: translateY(-1px);
}
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-info { padding: 0 6px; min-width: 110px; text-align: center; }

/* 占位 / 禁用项 */
.section-link-disabled {
  cursor: not-allowed !important;
  opacity: 0.55;
  filter: grayscale(0.4);
}
.section-link-disabled:hover { transform: none !important; }

/* 搜索无结果提示 */
.section-empty {
  text-align: center;
  padding: 26px 8px;
  color: #c89ab1;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  margin-top: 52px;
  color: #b07d96;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.42s forwards;
}
.footer-small { margin-top: 6px; font-size: 0.85rem; opacity: 0.8; }

/* ICP 备案号：沿用页脚配色，虚线下划线 */
.beian-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.beian-link:hover { opacity: 1; border-bottom-style: solid; }

/* ===== 回到欢迎页（首页左上角浮标）=====
   位置为什么这么定：顶部横幅是 sticky、z-index 50，所以浮标必须
   ① 定在横幅**下方**（不能压上去，否则遮住应援语，且会跟着横幅一起被顶掉一格），
   ② z-index 比 50 高（滚动时压在横幅之上而不是被它盖住）。
   配色用「白底 + 粉字 + 粉描边」而不是实心粉胶囊：横幅本身就是粉色渐变，
   实心粉贴上去会糊成一片；白底在粉底上反而清爽，也不盖住背景光斑。
   移动端只留 🏠 图标（文字由 .welcome-btn-text 隐藏），避免挤占横幅。 */
.welcome-btn {
  position: fixed;
  top: 68px;               /* 横幅高度（14px 上下 padding + 1.15rem 字 ≈ 56px）+ 12px 呼吸 */
  left: 16px;
  z-index: 60;             /* > .top-banner 的 50 */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink-deep);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink-soft);
  box-shadow: 0 4px 14px rgba(255, 79, 146, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.welcome-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 79, 146, 0.32);
}
.welcome-btn:active { transform: translateY(0); }
.welcome-btn:focus-visible {
  outline: 3px solid rgba(255, 79, 146, 0.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .welcome-btn { transition: none; }
  .welcome-btn:hover { transform: none; }
}

/* ===== 今日小签（今天几月几号 + 每日一句祝福）=====
   设计取向：整站都是「白卡 + 柔和描边 + 居中 + 淡入上浮」，这里沿用同一套，
   但刻意做成**细长的一条**，不抢版面 —— 它只回答两件事：
   「今天几月几号」和「今天想对你说什么」。**不做月历**（喵主明确不要大块日历）。
     · 桌面：一条居中胶囊  [今日] 2026 年 9 月 16 日 星期三 ｜ 🌷 祝福…
     · 窄屏（≤680px）：折成上下两行，圆角收小，整体也就两个小方块那么大。
   ⚠️ 默认 display:none，由 today.js 渲染完再挂 .is-ready 显示：
   万一 JS 没跑起来，宁可整块不出现，也不要留一张空卡。 */
.today-card {
  display: none;
  margin-top: 26px;
  text-align: center;
}
.today-card.is-ready {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.08s forwards;
}

/* 胶囊本体：宽度跟着内容走，自己居中 */
.today-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 13px;
  max-width: 100%;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px dashed rgba(255, 126, 179, 0.45);
  box-shadow: 0 8px 22px rgba(255, 126, 179, 0.16);
}

/* 「今日」标签 + 年月日 + 星期 归成一组：窄屏折行时这一组不会被拆散 */
.today-when {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.today-tag {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 2px 8px rgba(255, 126, 179, 0.28);
}
.today-date {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--pink-deep);
}
.today-week { font-size: 0.86rem; letter-spacing: 0.5px; color: #b07d96; }

/* 日期与祝福之间的柔和竖线（折成两行时用不上，媒体查询里隐藏） */
.today-sep {
  align-self: stretch;
  width: 1px;
  min-height: 16px;
  background: linear-gradient(180deg, rgba(255, 126, 179, 0), rgba(255, 126, 179, 0.55), rgba(255, 126, 179, 0));
}

/* 每日祝福 */
.today-bless {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.today-bless-ico { font-size: 1rem; flex-shrink: 0; }
.today-bless-text {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pink-deep);
}

/* ===== 通用淡入上浮动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式 ===== */
@media (max-width: 680px) {
  body::before, body::after { filter: blur(60px); opacity: 0.35; }

  .container { padding: 24px 14px 44px; }

  .top-banner {
    padding: 10px 12px;
    font-size: 0.95rem;
    gap: 8px;
  }
  .banner-heart { font-size: 1rem; }
  .banner-text { min-width: auto; }

  .hero { padding: 20px 0 6px; }
  .avatar-ring {
    width: 112px; height: 112px;
    padding: 5px;
  }
  .site-title { font-size: 2rem; }
  .site-subtitle { font-size: 0.95rem; }
  .site-intro {
    font-size: 0.92rem;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .sections { gap: 20px; margin-top: 28px; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .card-icon { font-size: 2.2rem; }
  .card-title { font-size: 1.35rem; }
  .card-desc { font-size: 0.92rem; margin-bottom: 16px; }

  .placeholder-grid { grid-template-columns: 1fr; gap: 10px; }
  .placeholder { padding: 16px 10px; }
  .placeholder-icon { font-size: 1.6rem; }
  .placeholder-label { font-size: 0.95rem; }

  .album-links { grid-template-columns: 1fr; gap: 10px; }
  .album-link { padding: 13px 15px; }
  .album-emoji { font-size: 1.5rem; }
  .album-name { font-size: 1.05rem; }
  .album-hint { font-size: 0.82rem; }

  .app-links { grid-template-columns: 1fr; }
  .app-link { padding: 12px 14px; }
  .app-emoji { font-size: 1.4rem; }
  .app-name { font-size: 0.95rem; }
  .app-hint { font-size: 0.82rem; }

  .proj-links { grid-template-columns: 1fr; }
  .proj-link { padding: 12px 14px; }
  .proj-emoji { font-size: 1.4rem; }
  .proj-name { font-size: 0.95rem; }
  .proj-hint { font-size: 0.82rem; }

  /* 今日小签：窄屏从一条胶囊折成上下两行（日期一行 / 祝福一行），整体压到最小 */
  .today-card { margin-top: 20px; }
  .today-inner {
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 18px;
  }
  .today-sep { display: none; }
  .today-tag { font-size: 0.68rem; padding: 2px 9px; letter-spacing: 1.5px; }
  .today-date { font-size: 0.95rem; }
  .today-week { font-size: 0.82rem; }
  .today-bless { display: block; }
  /* 图标改成行内流：长祝福折成两行时，它老老实实待在**第一行开头**，
     而不是被 flex 居中后悬在两行正中间（生日那种长句会很明显）。 */
  .today-bless-ico { font-size: 0.95rem; margin-right: 4px; }
  .today-bless-text { font-size: 0.88rem; line-height: 1.5; }

  .footer { margin-top: 36px; font-size: 0.9rem; }

  /* 左上角浮标：横幅变矮了（10px padding + 0.95rem 字 ≈ 46px），浮标跟着上移；
     横向只留 🏠，省得在窄屏上跟应援横幅抢位置 */
  .welcome-btn { top: 58px; left: 12px; padding: 8px 12px; font-size: 1rem; }
  .welcome-btn-text { display: none; }
}
