/* ============================================================
   澜夕的小窝 · 样式表
   可爱风 · 圆角 · 极光渐变背景（参考 NapCat）
   ============================================================ */

/* ---------- 主题变量（默认：白天） ---------- */
:root {
  --primary: #ff7eb3;
  --primary-deep: #e6538c;
  --primary-soft: #ffe0ee;
  --primary-faint: #fff3f8;
  --grad-a: #ffa6cf;
  --grad-b: #ff7eb3;
  --text: #4a3b52;
  --text-muted: #a58ba6;
  --card: #ffffff;
  --border: #ffe3ef;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 26px rgba(255, 126, 179, 0.18);
  --shadow-sm: 0 4px 14px rgba(255, 126, 179, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "ZCOOL KuaiLe", "站酷快乐体", "站酷奶酪体", "ZCOOLNaiLaoTi", "ZQKNLT",
    "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.5px;
}

/* ---------- NapCat 风格极光背景 ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom right, #eef2ff 0%, #ffffff 50%, #fdf2f8 100%);
  background-size: 200% 200%;
  animation: auroraFlow 16s ease infinite;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  animation: blobDrift 18s ease-in-out infinite;
}
.blob-1 {
  top: -10%; left: -10%;
  width: 500px; height: 500px;
  background: rgba(153, 199, 251, 0.4);
  filter: blur(100px);
}
.blob-2 {
  top: 20%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(217, 184, 255, 0.4);
  filter: blur(90px);
  animation-duration: 22s;
  animation-delay: -6s;
}
.blob-3 {
  bottom: -10%; left: 20%;
  width: 600px; height: 600px;
  background: rgba(251, 207, 232, 0.3);
  filter: blur(110px);
  animation-duration: 26s;
  animation-delay: -12s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.08); }
}
@keyframes auroraFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-deep);
  white-space: nowrap;
  transition: transform 0.25s;
}
.logo:hover { transform: scale(1.05) rotate(-2deg); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--primary-deep);
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 20px 70px;
  color: var(--text);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(90, 95, 160, 0.10) 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; }
.hero-hello { font-size: 1.15rem; opacity: 0.95; margin-bottom: 8px; }
.hero-title {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.7);
}
.hero-sub { font-size: 1.12rem; margin-bottom: 14px; opacity: 0.96; }
.hero-sub strong { color: var(--primary-deep); text-decoration: underline wavy var(--primary-soft); }
.hero-motto {
  display: inline-block;
  background: rgba(255,255,255,0.55);
  border: 2px dashed var(--primary);
  color: var(--primary-deep);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.btn-ghost {
  background: rgba(255,255,255,0.5);
  color: var(--primary-deep);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.75); }

.hero-card {
  flex: 0 0 260px;
  background: var(--card);
  color: var(--text);
  border-radius: 28px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  animation: float 4s ease-in-out infinite;
}
.hero-avatar {
  font-size: 4.4rem;
  animation: wiggle 2.6s ease-in-out infinite;
  line-height: 1;
}
.hero-card-name { font-size: 1.4rem; font-weight: 700; color: var(--primary-deep); margin: 10px 0 4px; }
.hero-card-tag { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.hero-quote {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.95rem;
  min-height: 44px;
}

.meal-countdown {
  position: relative;
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}
.meal-label { font-size: 1rem; }
.meal-time {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.meal-name { background: var(--primary); color: #fff; padding: 3px 14px; border-radius: 999px; font-size: 0.95rem; }

.hero-float {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.85;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}
.float1 { top: 12%; left: 6%; animation-delay: 0s; }
.float2 { top: 22%; right: 8%; animation-delay: 0.6s; }
.float3 { bottom: 26%; left: 12%; animation-delay: 1.2s; }
.float4 { bottom: 14%; right: 14%; animation-delay: 1.8s; }
.float5 { top: 55%; left: 40%; font-size: 1.6rem; animation-delay: 2.4s; }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 20px; max-width: 1080px; margin: 0 auto; }
.section-alt {
  max-width: none;
}
.section-alt > .section-title, .section-alt > .section-sub { text-align: center; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 42px;
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.about-card h3 { color: var(--primary-deep); margin-bottom: 16px; font-size: 1.25rem; }
.profile-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.profile-list li { display: flex; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.profile-list li:last-child { border-bottom: none; }
.profile-list span {
  flex: 0 0 72px;
  color: #fff;
  background: var(--primary);
  text-align: center;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.9rem;
  align-self: flex-start;
}
.profile-list b { font-weight: 500; }

.like-block { margin-bottom: 18px; }
.like-block:last-child { margin-bottom: 0; }
.like-title { font-weight: 700; color: var(--primary-deep); margin-bottom: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: transform 0.2s;
}
.tag:hover { transform: scale(1.06) rotate(-2deg); }
.tag-bad { background: #f3e8ec; color: #b5838d; }

.stats { display: flex; flex-direction: column; gap: 14px; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat-emoji { font-size: 1.4rem; }
.stat-name { flex: 0 0 76px; font-size: 0.95rem; }
.stat-bar {
  flex: 1;
  height: 12px;
  background: var(--primary-soft);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border-radius: 999px;
  transition: width 1.2s ease;
}
.stat-num { flex: 0 0 54px; text-align: right; font-weight: 700; color: var(--primary-deep); }
.stat-note { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- 时间线 ---------- */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--primary) 0 10px, transparent 10px 20px);
}
.timeline-item { position: relative; margin-bottom: 22px; }
.t-time {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.t-dot {
  position: absolute;
  left: -30px;
  top: 30px;
  width: 32px;
  height: 32px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.t-card { padding: 16px 20px; font-size: 1rem; }
.t-card strong { color: var(--primary-deep); }

/* ---------- 美食日记 ---------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.food-card { text-align: center; }
.food-emoji { font-size: 3rem; animation: wiggle 3.4s ease-in-out infinite; }
.food-card h3 { color: var(--primary-deep); margin: 8px 0 6px; font-size: 1.2rem; }
.food-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.stars { font-size: 1.05rem; }
.stars span { color: var(--text-muted); font-size: 0.9rem; }
.food-meta { margin-top: 10px; font-size: 0.85rem; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 4px 12px; display: inline-block; }

/* ---------- 偷懒秘籍 ---------- */
.tips-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tip-card { position: relative; padding-top: 34px; }
.tip-num {
  position: absolute;
  top: -16px;
  left: 24px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.tip-card p { font-size: 0.98rem; }
.tip-card strong { color: var(--primary-deep); }

/* ---------- 兴趣爱好 ---------- */
.hobby-cloud { text-align: center; margin-bottom: 40px; }
.tag-lg { font-size: 1.1rem; padding: 9px 20px; margin: 4px; display: inline-block; }
.hobby-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.hobby-card h3 { color: var(--primary-deep); margin-bottom: 10px; font-size: 1.2rem; }
.hobby-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- 心情日记 ---------- */
.mood-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.mood-card { position: relative; }
.mood-date { color: var(--primary-deep); font-weight: 700; margin-bottom: 8px; }
.mood-card p { font-size: 0.98rem; }

/* ---------- 座右铭 ---------- */
.motto-section { padding: 60px 20px; }
.motto-box {
  text-align: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  border-radius: 30px;
  padding: 50px 30px;
  box-shadow: var(--shadow);
}
.motto-big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
.motto-small { opacity: 0.9; margin-bottom: 16px; }
.motto-extra { background: rgba(255,255,255,0.2); display: inline-block; padding: 8px 20px; border-radius: 999px; }
.motto-extra strong { text-decoration: underline wavy; }

/* ---------- 留言板 ---------- */
.guestbook { max-width: 720px; margin: 0 auto; }
.gb-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.gb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.gb-row input { flex: 1 1 160px; }
.gb-form input, .gb-form textarea {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--primary); }
.gb-form textarea { min-height: 110px; resize: vertical; }
.gb-form .btn { align-self: flex-start; }

.gb-list { display: flex; flex-direction: column; gap: 14px; }
.gb-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  animation: pop 0.35s ease;
}
.gb-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gb-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.gb-name { font-weight: 700; color: var(--primary-deep); }
.gb-time { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
.gb-text { font-size: 0.98rem; }
.gb-empty { text-align: center; color: var(--text-muted); padding: 20px; }
.gb-del { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.gb-del:hover { color: #e6538c; }

/* ---------- 联系 ---------- */
.contact-section { padding-top: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-card span { font-size: 1.5rem; }
.contact-card:hover { color: var(--primary-deep); }

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text);
  margin-top: 40px;
}
.footer-sub { font-size: 0.85rem; opacity: 0.85; margin-top: 6px; }
.footer-runtime { font-size: 0.72rem; opacity: 0.75; margin-top: 10px; letter-spacing: 0.5px; }

/* ---------- 白天 / 夜晚 切换按钮 ---------- */
.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
  color: var(--primary-deep);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- QQ 加好友提示 ---------- */
#qqToast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 35, 0.92);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
#qqToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 动画 ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   夜晚模式（纯黑背景 + 对应字体颜色调整）
   ============================================================ */
[data-theme="night"] {
  --primary: #ff8fbf;
  --primary-deep: #ffb8d4;
  --primary-soft: #2b1f26;
  --primary-faint: #0d0d0d;
  --grad-a: #ff7eb3;
  --grad-b: #ff9ecb;
  --text: #f3f1f5;
  --text-muted: #9d95a4;
  --card: #131316;
  --border: #2c2c31;
  --header-bg: rgba(10, 10, 10, 0.82);
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="night"] .bg-aurora { background-image: linear-gradient(to bottom right, #111827 0%, #1f2937 50%, #111827 100%); }
[data-theme="night"] .hero { color: #fff; }
[data-theme="night"] .hero-bg { background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px); opacity: 0.12; }
[data-theme="night"] .hero-sub strong { color: #fff; }
[data-theme="night"] .hero-motto { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); color: #fff; }
[data-theme="night"] .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); }
[data-theme="night"] .hero-card { border: 2px solid var(--border); }
[data-theme="night"] .meal-countdown { border: 2px solid var(--border); }
[data-theme="night"] .motto-box { background: #111113; box-shadow: none; }
[data-theme="night"] .site-footer { color: #fff; }
[data-theme="night"] .tag-bad { background: #241a1e; color: #d9a4b3; }
[data-theme="night"] .gb-del:hover { color: #ff9ecb; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 60px;
    right: 14px;
    flex-direction: column;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
    display: none;
    min-width: 150px;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 16px 50px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-card { flex: 0 0 auto; width: 100%; max-width: 300px; }
  .hero-float { display: none; }
  .section { padding: 60px 16px; }
  .theme-toggle { right: 12px; }
  .back-top { right: 12px; }
}
