/* ====== Lena 小站基础样式 ====== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-gradient: radial-gradient(circle at 10% 20%, #ffe6f1 0%, #fdf4ff 40%, #e0f2fe 100%);
  --accent: #f97396;
  --accent-soft: #fecdd3;
  --accent-dark: #db2777;
  --text-main: #1f2933;
  --text-soft: #6b7280;
  --card-bg: #ffffff;
  --border-soft: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 12px 30px rgba(148, 163, 184, 0.3);
  --radius-xl: 18px;
  --radius-xxl: 28px;
}

/* 全局 */

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
}

.page-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

/* ====== 头部：Logo + 导航 ====== */

.site-header {
  background: linear-gradient(130deg, #f97396, #fb7185, #fcd34d);
  color: #fff;
  border-radius: var(--radius-xxl);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(12px);
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 10px;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.site-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

/* 导航 */

.site-nav {
  justify-self: center;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: #fefce8;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

/* Header 右侧按钮 */

.header-cta {
  display: flex;
  gap: 8px;
}

@media (max-width: 700px) {
  .header-cta {
    justify-content: center;
  }
}

.btn-pill {
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  background: #fef9c3;
  color: #7f1d1d;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.btn-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ====== Hero 区域 ====== */

.hero {
  margin-top: 22px;
  padding: 22px 18px;
  border-radius: var(--radius-xxl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-main-title {
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #9f1239;
}

.hero-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* Hero 右侧插图区 */

.hero-illustration {
  justify-self: center;
  position: relative;
}

.hero-blob {
  width: 180px;
  height: 180px;
  border-radius: 60% 40% 55% 45%;
  background: radial-gradient(circle at 30% 10%, #fef9c3, #fbcfe8);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob-inner {
  width: 130px;
  height: 130px;
  border-radius: 40% 60% 45% 55%;
  background: #fff;
  overflow: hidden;
  border: 3px solid rgba(248, 250, 252, 0.9);
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  font-size: 18px;
  opacity: 0.7;
}

.hero-star.s1 { top: 8%; left: 6%; }
.hero-star.s2 { top: 12%; right: 14%; }
.hero-star.s3 { bottom: 6%; right: 8%; }

/* ====== 公共 section 样式 ====== */

.section {
  margin-top: 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title-emoji {
  font-size: 22px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-soft);
}

.section-link {
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* ====== 故事卡片列表 ====== */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.story-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 250, 252, 0.9);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 0, rgba(244, 114, 182, 0.18), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.story-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 1;
}

.story-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.story-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.story-excerpt {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chip {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
}

/* 空状态 */

.empty {
  margin-top: 20px;
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

/* Footer */

.site-footer {
  margin-top: 32px;
  padding: 18px 12px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.9;
}

.site-footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
