/* ==========================================================================
   Jinying Tu's Tech Blog - Minimalist Light Theme (Inspired by CNBlogs & GitHub)
   ========================================================================== */

/* 1. Design Tokens & Variables */
:root {
  --bg-page: #f4f6f8;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-muted: #f6f8fa;
  --bg-hover: #f1f4f8;

  --border-color: #e1e4e8;
  --border-light: #eaecef;
  --border-active: #0969da;

  --text-primary: #1f2328;
  --text-secondary: #57606a;
  --text-muted: #8c959f;
  --text-inverse: #ffffff;

  --link-color: #0969da;
  --link-hover: #0550ae;
  --accent-badge: #ddf4ff;
  --accent-badge-text: #0969da;
  --badge-pinned-bg: #fff8c5;
  --badge-pinned-text: #9a6700;
  --badge-pinned-border: #d4a72c;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --shadow-sm: 0 1px 3px rgba(27, 31, 35, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.07);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Site Topbar (Header) */
.site-topbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--link-color);
}

.brand-icon {
  font-size: 1.1rem;
}

.topbar-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.topbar-link:hover {
  color: var(--link-color);
  background-color: var(--bg-muted);
}

.topbar-external {
  color: var(--link-color);
  font-weight: 600;
}

/* 4. Page Layout Structure */
.layout-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: calc(100vh - 120px);
}

.layout-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* 5. Left Sidebar (CNBlogs Profile Panel) */
.blog-sidebar {
  width: 270px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 76px;
}

.sidebar-profile {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.avatar-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--border-color);
  background-color: #ffffff;
  transition: var(--transition);
}

.avatar-wrap:hover {
  border-color: var(--link-color);
  transform: scale(1.03);
}

.sidebar-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.sidebar-tagline {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--link-color);
  background-color: var(--accent-badge);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sidebar-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
  text-align: left;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none !important;
  word-break: break-all;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.contact-item:hover {
  background-color: var(--bg-muted);
  color: var(--link-color);
}

.contact-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-section-title,
.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  text-decoration: none !important;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--bg-muted);
  color: var(--link-color);
}

.nav-icon {
  font-size: 0.95rem;
}

/* Sidebar Widgets: Stats & Tags */
.sidebar-widget {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background-color: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--link-color);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: var(--transition);
}

.sidebar-tag:hover {
  border-color: var(--link-color);
  color: var(--link-color);
  background-color: var(--accent-badge);
}

.sidebar-footer {
  padding-top: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.sidebar-footer p {
  margin: 0;
}

/* 6. Main Content Panel */
.main-content-panel {
  flex: 1;
  min-width: 0;
}

.content-panel-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.content-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.content-panel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Post Stream (Blog List) */
.posts-list-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stream-post-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stream-post-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.post-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stream-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.stream-post-title a {
  color: var(--text-primary);
  text-decoration: none !important;
}

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

.stream-badge-featured {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--badge-pinned-text);
  background-color: var(--badge-pinned-bg);
  border: 1px solid var(--badge-pinned-border);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stream-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--border-color);
}

.meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
}

.stream-post-excerpt p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
}

.stream-post-footer {
  display: flex;
  justify-content: flex-end;
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* 7. Post Detail Page Card & Markdown Typography */
.post-detail-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.post-detail-header {
  margin-bottom: 16px;
}

.post-detail-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-tag-item {
  background-color: var(--accent-badge);
  color: var(--accent-badge-text);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.post-detail-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-light);
  margin: 20px 0 28px;
}

/* Post Detail Body Content (CNBlogs & GitHub Markdown Standard) */
.post-detail-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  word-wrap: break-word;
}

.post-detail-body h1,
.post-detail-body h2,
.post-detail-body h3,
.post-detail-body h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}

.post-detail-body h1 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.4em;
}

.post-detail-body h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35em;
}

.post-detail-body h3 {
  font-size: 1.15rem;
}

.post-detail-body h4 {
  font-size: 1.02rem;
}

.post-detail-body p {
  margin-top: 0;
  margin-bottom: 1.1em;
}

.post-detail-body ul,
.post-detail-body ol {
  padding-left: 1.7em;
  margin-top: 0;
  margin-bottom: 1.1em;
}

.post-detail-body li {
  margin-bottom: 0.35em;
}

.post-detail-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  background-color: var(--bg-muted);
  border-left: 4px solid var(--link-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.post-detail-body blockquote > :first-child {
  margin-top: 0;
}

.post-detail-body blockquote > :last-child {
  margin-bottom: 0;
}

.post-detail-body hr {
  border: 0;
  height: 1px;
  background-color: var(--border-light);
  margin: 2em 0;
}

/* Code & Preformatted Blocks */
.post-detail-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: rgba(175, 184, 193, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #24292f;
}

.post-detail-body pre {
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 1.2em 0;
}

.post-detail-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  word-break: normal;
  white-space: pre;
}

/* Tables */
.post-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.92rem;
}

.post-detail-body th,
.post-detail-body td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}

.post-detail-body th {
  background-color: var(--bg-muted);
  font-weight: 600;
}

.post-detail-body tr:nth-child(even) {
  background-color: #fafbfc;
}

/* Post Navigation (Prev / Next) */
.post-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.post-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--link-color);
}

.post-nav-link:hover {
  text-decoration: underline;
}

/* 8. All Posts Page Styling */
.page-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.all-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item-link {
  text-decoration: none !important;
  color: inherit;
}

.post-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.post-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.post-item-main {
  flex: 1;
  min-width: 0;
}

.post-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.post-item:hover .post-item-title {
  color: var(--link-color);
}

.post-item-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.5;
}

.post-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
}

.post-item-meta {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* 9. Site Footer */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
  margin-top: 40px;
  text-align: center;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-text a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-text a:hover {
  color: var(--link-color);
}

/* 10. Responsive Design */
@media (max-width: 880px) {
  .layout-container {
    flex-direction: column;
  }

  .blog-sidebar {
    width: 100%;
    position: static;
  }

  .topbar-tagline {
    display: none;
  }

  .post-detail-card {
    padding: 22px 20px;
  }

  .post-detail-title {
    font-size: 1.45rem;
  }
}

me (Only active inside body.qixi-body) */
#starry-canvas {
  display: none;
}

body.qixi-body {
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 8px;
  background-color: #080b16;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(168, 85, 247, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 20% 40%, rgba(244, 63, 94, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #090b17 0%, #120e28 50%, #070913 100%);
  background-attachment: fixed;
  color: #fdf2f8;
}

body.qixi-body #starry-canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

body.qixi-body .site-header {
  background: rgba(9, 11, 23, 0.75);
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
}

/* Archive Nav Bar on Qixi Page */
.archive-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.8rem 1.4rem;
  background: rgba(26, 20, 51, 0.6);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.archive-back-link {
  color: #fda4af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  transition: all 0.2s ease;
}

.archive-back-link:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
}

.archive-badge {
  font-size: 0.85rem;
  color: #fde047;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 500;
}

/* Qixi Celestial & Hero Visuals */
.qixi-hero {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 4rem 1.5rem;
  margin-bottom: 3.5rem;
}

.celestial-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2.5rem auto;
}

.glowing-moon {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 35% 35%, #fffdf0 0%, #fef08a 40%, #f59e0b 90%, #d97706 100%);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 20px;
  box-shadow: 
    0 0 35px rgba(254, 240, 138, 0.8),
    0 0 70px rgba(251, 146, 60, 0.5),
    0 0 120px rgba(244, 63, 94, 0.3);
  animation: moonPulse 6s ease-in-out infinite alternate;
}

.moon-glow-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(254, 240, 138, 0.35);
  animation: ringRotate 20s linear infinite;
}

.orbiting-item {
  position: absolute;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px #f43f5e);
}

.orbiting-item.o1 {
  top: -10px;
  left: 50%;
  animation: orbit1 8s linear infinite;
}

.orbiting-item.o2 {
  bottom: 0;
  right: 10px;
  animation: orbit2 10s linear infinite;
}

.orbiting-item.o3 {
  top: 50%;
  left: -15px;
  animation: orbit3 12s linear infinite;
}

@keyframes moonPulse {
  0% { transform: scale(0.98); filter: brightness(1); }
  100% { transform: scale(1.02); filter: brightness(1.1); }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(85px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(85px) rotate(-360deg); }
}

@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(90px) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(90px) rotate(-480deg); }
}

@keyframes orbit3 {
  from { transform: rotate(240deg) translateX(80px) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(80px) rotate(-600deg); }
}

/* Qixi Date Badge & Headings */
.qixi-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.badge-icon { font-size: 1.1rem; }
.badge-date { font-size: 0.9rem; color: #cbd5e1; }
.badge-tag { font-size: 0.85rem; color: #fb7185; font-weight: 600; }

.romantic-core-heading {
  margin: 0 0 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.romantic-quote-en {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, #fff 20%, #fbcfe8 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.romantic-quote-cn {
  font-family: 'Ma Shan Zheng', cursive, sans-serif;
  font-size: 2rem;
  color: #fbbf24;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.romantic-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2.2rem auto;
  line-height: 1.8;
}

/* Qixi Action Buttons - Capsule Rounded (Pill Shaped) */
.romantic-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.btn-qixi-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  color: #ffffff;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 6px 25px rgba(244, 63, 94, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-qixi-letter:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(244, 63, 94, 0.7);
  color: #ffffff;
}

.btn-qixi-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-qixi-wish:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(168, 85, 247, 0.7);
  color: #ffffff;
}

.wish-counter {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-left: 0.4rem;
  color: #ffffff;
}

.wish-source-badge {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Romantic Quote Card */
.romantic-quote-card {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(26, 20, 51, 0.65);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.quote-stars {
  color: #fbbf24;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3em;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #fdf2f8;
  margin: 0 0 1.2rem 0;
}

.quote-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #fda4af;
}

/* Three Romantic Keepsake Cards */
.romantic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.romantic-card {
  background: rgba(26, 20, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.romantic-card:hover {
  background: rgba(43, 30, 82, 0.8);
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-symbol {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fdf2f8;
  margin: 0 0 0.6rem 0;
}

.card-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0 0 1.2rem 0;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.78rem;
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  align-self: flex-start;
}

.archive-bottom-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.btn-back-home {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 50px !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back-home:hover {
  background: linear-gradient(135deg, #f43f5e, #a855f7);
  border-color: rgba(244, 63, 94, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(244, 63, 94, 0.4);
}

.btn-back-home:hover {
  background: var(--primary);
  color: #fff;
}

/* Romantic Love Letter Modal */
.love-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.love-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.love-modal-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, #23173d 0%, #150f29 50%, #1e1236 100%);
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(244, 63, 94, 0.25);
  color: #fdf2f8;
}

.love-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fda4af;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.love-modal-close:hover {
  background: #f43f5e;
  color: #fff;
}

.love-letter-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.heart-stamp { font-size: 2.5rem; margin-bottom: 0.5rem; }
.love-letter-badge { font-size: 0.85rem; color: #fb7185; }
.love-letter-title {
  font-family: 'Ma Shan Zheng', cursive, sans-serif;
  font-size: 2.2rem;
  color: #fff;
  margin: 0.5rem 0 0 0;
}

.love-letter-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #fce7f3;
}

.letter-verse {
  text-align: center;
  font-style: italic;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.letter-quote-box {
  background: rgba(244, 63, 94, 0.12);
  border-left: 3px solid #f43f5e;
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

.en-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.4rem 0;
}

.cn-quote {
  font-size: 0.95rem;
  color: #fbcfe8;
  margin: 0;
}

.letter-signature {
  text-align: right;
  margin-top: 2rem;
  color: #fda4af;
}

.sign-text { font-weight: 600; margin: 0; }
.sign-date { font-size: 0.85rem; opacity: 0.8; margin: 0.2rem 0 0 0; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title { font-size: 1.8rem; }
  .romantic-quote-en { font-size: 2rem; }
  .romantic-quote-cn { font-size: 1.5rem; }
  .post-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .post-item-meta { text-align: left; }
  .post-single { padding: 1.8rem 1.2rem; }
}
