/* ==============================================
   Isabelle's Blog · 温暖文艺风
   色调：淡蓝灰 / 灰蓝 / 雾蓝
   字体：思源宋体 + 系统无衬线
   ============================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --bg: #f2f4f7;
  --card: #fafbfd;
  --text: #36404a;
  --text-light: #5d6b7a;
  --text-muted: #8b98a8;
  --accent: #7d93a8;
  --accent-hover: #617a91;
  --border: #d8dfe7;
  --shadow: 0 2px 12px rgba(54, 64, 74, 0.05);
  --shadow-hover: 0 4px 20px rgba(54, 64, 74, 0.08);
  --radius: 14px;
  --font-serif: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 680px;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
  /* 大气渐变 + ❄ 雪花符号散落 */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(130, 155, 180, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(150, 170, 195, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Ctext x='20' y='55' font-size='30' fill='%23809ab0' opacity='0.25'%3E❄%3C/text%3E%3Ctext x='140' y='120' font-size='26' fill='%23809ab0' opacity='0.2'%3E❄%3C/text%3E%3Ctext x='60' y='200' font-size='24' fill='%23809ab0' opacity='0.22'%3E❄%3C/text%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 244, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* 导航雪花 */
.nav-icon {
  font-size: 0.85rem;
  color: var(--accent);
  margin-left: 2px;
  display: inline-block;
  animation: snow-gentle 3s ease-in-out infinite;
}

@keyframes snow-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-2px) rotate(15deg); opacity: 1; }
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: var(--border);
  color: var(--text);
}

.nav-links a.active {
  background: var(--text);
  color: #fffdf8;
}

/* ---------- 主页容器 ---------- */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ---------- 个人名片 ---------- */
.hero {
  text-align: center;
  padding: 48px 0 20px;
}

/* 头像 */
.hero-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 4px 24px rgba(54, 64, 74, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(54, 64, 74, 0.15);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 昵称 */
.hero-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* 一句话 */
.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

/* 简介 */
.hero-bio {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* 社交链接 */
.hero-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--card);
  transition: all 0.25s ease;
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f4f7fa;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- 段落分隔符 ✿ ---------- */
.section-divider {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 28px 0 8px;
  letter-spacing: 0.15em;
  user-select: none;
}

/* ---------- 文章区 ---------- */
.posts-section {
  margin-top: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 文章卡片 */
.post-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c4cdd8;
}

/* 卡片角标 - 左上 */
.post-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
  border-radius: 2px 0 0 0;
  transition: border-color 0.25s ease;
}

/* 卡片角标 - 右下 */
.post-card::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-bottom: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  border-radius: 0 0 2px 0;
  transition: border-color 0.25s ease;
}

.post-card:hover::before,
.post-card:hover::after {
  border-color: var(--accent);
}

.post-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 6px;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* 查看全部 */
.view-all {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-all:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  user-select: none;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

/* ---------- 响应式：小屏幕 ---------- */
@media (max-width: 500px) {
  .hero {
    padding: 32px 0 12px;
  }

  .hero-avatar {
    width: 96px;
    height: 96px;
  }

  .hero-name {
    font-size: 1.6rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-bio {
    font-size: 0.88rem;
    padding: 0 8px;
  }

  .hero-links a {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  .nav-title {
    font-size: 1.1rem;
  }

  .post-card {
    padding: 18px 16px;
  }

  .section-divider {
    padding: 20px 0 4px;
  }
}
