/* ============================================
   INFP 碎碎念个人站 — 全局样式表
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* 主色 */
  --fog-purple: #B8A9C9;
  --milk-blue: #C6DEF1;
  --paper-apricot: #F7EFE2;
  --mint-accent: #C4E5D9;

  /* 深色模式 */
  --dark-bg: #1A1C29;
  --dark-text: #D4C5E4;

  /* 通用 */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 8px 32px rgba(184, 169, 201, 0.3);
  --shadow-hover: 0 16px 48px rgba(184, 169, 201, 0.45);
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-songti: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-hand: 'Ma Shan Zheng', 'Kaiti SC', 'STKaiti', cursive;
}

[data-theme="dark"] {
  --glass-bg: rgba(26, 28, 41, 0.5);
  --glass-border: rgba(212, 197, 228, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-songti);
  background: linear-gradient(135deg, #f0e8f5 0%, #e8eef8 50%, #f5efe8 100%);
  background-attachment: fixed;
  color: #5a5568;
  min-height: 100vh;
  overflow-x: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1A1C29 0%, #252338 50%, #1F1D2E 100%);
  color: var(--dark-text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--fog-purple);
  border-radius: 4px;
  opacity: 0.5;
}

/* ---------- Splash / Loading Animation ---------- */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #d4c5e4 0%, #B8A9C9 50%, #9a8ab0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(198, 222, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(247, 239, 226, 0.2) 0%, transparent 70%);
  animation: fogDrift 15s ease-in-out infinite;
}

.splash-title {
  font-family: var(--font-hand);
  font-size: clamp(3rem, 8vw, 6rem);
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.8), 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: titleFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}

.splash-subtitle {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-family: var(--font-songti);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-top: 1.5rem;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: subtitleFadeIn 1s ease-out 1.4s forwards;
}

@keyframes titleFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleFadeIn {
  to { opacity: 1; }
}

@keyframes fogDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -10px); }
}

/* ---------- Cursor Trail ---------- */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(184, 169, 201, 0.8) 0%, rgba(184, 169, 201, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgba(184, 169, 201, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

/* ---------- Stars Background ---------- */
.stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Clouds Background ---------- */
.clouds-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: cloudDrift linear infinite;
}

[data-theme="dark"] .cloud {
  opacity: 0.15;
  filter: blur(80px);
}

.cloud-1 {
  width: 400px;
  height: 300px;
  background: linear-gradient(135deg, #B8A9C9, #C6DEF1);
  top: 10%;
  left: -10%;
  animation-duration: 60s;
}

.cloud-2 {
  width: 350px;
  height: 250px;
  background: linear-gradient(135deg, #C6DEF1, #F7EFE2);
  top: 50%;
  left: -15%;
  animation-duration: 75s;
  animation-delay: -20s;
}

.cloud-3 {
  width: 300px;
  height: 200px;
  background: linear-gradient(135deg, #C4E5D9, #B8A9C9);
  top: 80%;
  left: -10%;
  animation-duration: 50s;
  animation-delay: -35s;
}

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}

/* ---------- Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.8s, opacity 0.8s ease 2.8s;
}

.bottom-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(26, 28, 41, 0.5);
}

.nav-link {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: inherit;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(184, 169, 201, 0.3);
  transform: translateY(-2px);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(212, 197, 228, 0.2);
}

/* ---------- Side Moon Clock ---------- */
.side-widget {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.moon-icon {
  font-size: 1.8rem;
  animation: moonBreath 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(184, 169, 201, 0.6));
}

@keyframes moonBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.widget-time {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: inherit;
  opacity: 0.85;
}

.widget-mood {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  background: rgba(198, 222, 241, 0.4);
  color: inherit;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .widget-mood {
  background: rgba(212, 197, 228, 0.15);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  bottom: 6.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-whispers {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 1s ease 3.5s forwards;
}

.whisper-text {
  font-family: var(--font-songti);
  font-size: 0.82rem;
  color: inherit;
  opacity: 0.55;
  letter-spacing: 0.2em;
  white-space: nowrap;
  position: relative;
  padding: 0.35rem 0.85rem;
}

.whisper-text::before,
.whisper-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.whisper-text::before {
  left: -18px;
}

.whisper-text::after {
  right: -18px;
}

.footer-whispers .whisper-text + .whisper-text::before {
  display: none;
}

@keyframes whisperScroll {
  0%, 100% { opacity: 0.4; letter-spacing: 0.2em; }
  50% { opacity: 0.7; letter-spacing: 0.25em; }
}

/* ---------- Page Container ---------- */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 6rem 10% 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
}

/* ---------- Hero / Slogan ---------- */
.hero-slogan {
  text-align: center;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 3s forwards;
}

.hero-slogan h1 {
  font-family: var(--font-songti);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.2em;
  line-height: 2;
  color: inherit;
}

.hero-slogan .highlight {
  display: inline-block;
  padding: 0 0.5em;
  background: linear-gradient(120deg, transparent 0%, rgba(198, 222, 241, 0.5) 50%, transparent 100%);
  border-radius: 4px;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Paper Card (Daily Note) ---------- */
.paper-card {
  margin-top: 5rem;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem 2rem;
  background: var(--paper-apricot);
  border-radius: 6px 12px 8px 14px;
  box-shadow:
    0 2px 8px rgba(184, 169, 201, 0.15),
    0 12px 40px rgba(184, 169, 201, 0.25),
    inset 0 0 60px rgba(200, 180, 140, 0.08);
  position: relative;
  opacity: 0;
  transform: translateY(40px) rotate(-1deg);
  animation: cardReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.3s forwards;
}

[data-theme="dark"] .paper-card {
  background: #2A2838;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(212, 197, 228, 0.05);
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0) rotate(-1deg); }
}

.paper-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 30px,
      rgba(200, 180, 140, 0.06) 30px,
      rgba(200, 180, 140, 0.06) 31px
    );
  pointer-events: none;
}

.paper-card::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-top: 1px solid rgba(200, 180, 140, 0.15);
  border-left: 1px solid rgba(200, 180, 140, 0.15);
  pointer-events: none;
}

.paper-date {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: rgba(150, 130, 110, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .paper-date {
  color: rgba(212, 197, 228, 0.5);
}

.paper-content {
  font-size: 0.95rem;
  line-height: 2.2;
  color: rgba(90, 80, 70, 0.85);
  letter-spacing: 0.03em;
  min-height: 160px;
}

[data-theme="dark"] .paper-content {
  color: rgba(212, 197, 228, 0.8);
}

.paper-content .typewriter-line {
  opacity: 0;
  animation: typeLine 0.5s ease forwards;
}

@keyframes typeLine {
  to { opacity: 1; }
}

.paper-content .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(90, 80, 70, 0.6);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.moon-sticker {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  animation: stickerFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(184, 169, 201, 0.3));
}

@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-8px) rotate(20deg); }
}

/* ---------- Quick Nav Cards ---------- */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: fadeSlideUp 1s ease 3.8s forwards;
}

.quick-nav-card {
  padding: 1.75rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.quick-nav-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.quick-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.quick-nav-label {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: inherit;
}

/* ---------- Diary Timeline ---------- */
.diary-header {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.diary-header h2 {
  font-family: var(--font-songti);
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--fog-purple), transparent);
  opacity: 0.3;
}

.diary-month {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--fog-purple);
  margin: 2rem 0 1.5rem;
  letter-spacing: 0.15em;
}

.diary-card {
  width: 45%;
  padding: 1.5rem;
  background: var(--paper-apricot);
  border-radius: 8px 4px 10px 6px;
  box-shadow: var(--shadow-soft);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 2rem;
}

.diary-card:nth-child(odd) {
  margin-left: 5%;
  transform: rotate(-1deg);
}

.diary-card:nth-child(even) {
  margin-left: auto;
  margin-right: 5%;
  transform: rotate(1deg);
}

[data-theme="dark"] .diary-card {
  background: #2A2838;
}

.diary-card:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.diary-card-date {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: rgba(150, 130, 110, 0.7);
  margin-bottom: 0.5rem;
}

.diary-card-content {
  font-size: 0.9rem;
  line-height: 1.9;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.diary-card-tags {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.diary-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  background: rgba(198, 222, 241, 0.5);
  color: rgba(120, 130, 160, 0.8);
  letter-spacing: 0.05em;
}

[data-theme="dark"] .diary-tag {
  background: rgba(212, 197, 228, 0.15);
  color: rgba(212, 197, 228, 0.7);
}

/* ---------- Diary Card Expand Modal ---------- */
.diary-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 28, 41, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.diary-modal.active {
  display: flex;
  opacity: 1;
}

.diary-modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  background: var(--paper-apricot);
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.diary-modal.active .diary-modal-content {
  transform: scale(1);
}

[data-theme="dark"] .diary-modal-content {
  background: #2A2838;
}

.diary-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(184, 169, 201, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.diary-modal-close:hover {
  background: rgba(184, 169, 201, 0.5);
  transform: rotate(90deg);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item:nth-child(3n) {
  grid-row: span 2;
}

.gallery-item:nth-child(5n) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: saturate(0.85) brightness(1.05) blur(0.5px);
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  filter: saturate(1) brightness(1.15) blur(0);
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(184, 169, 201, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---------- Messages ---------- */
.message-input-area {
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.message-textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 10px;
  font-family: var(--font-songti);
  font-size: 0.95rem;
  color: inherit;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .message-textarea {
  background: rgba(26, 28, 41, 0.5);
}

.message-textarea::placeholder {
  color: rgba(150, 130, 160, 0.5);
}

.message-textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 169, 201, 0.3);
}

.message-submit {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--fog-purple), var(--milk-blue));
  border-radius: 25px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.message-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.message-pile {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-item {
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: inherit;
  opacity: 0.75;
  transition: var(--transition-smooth);
  animation: messageFadeIn 0.8s ease forwards;
}

@keyframes messageFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.75; transform: translateY(0); }
}

.message-meta {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

.message-province {
  display: inline-block;
  padding: 0 0.4rem;
  margin: 0 0.3rem;
  background: rgba(184, 169, 201, 0.2);
  border-radius: 8px;
  font-size: 0.7rem;
  color: #8a7a9c;
  opacity: 0.8;
}

/* ---------- Excerpts Page ---------- */
.excerpt-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(184, 169, 201, 0.2);
}

.excerpt-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: rgba(184, 169, 201, 0.15);
  border-radius: 20px;
  color: #6b5b7d;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.excerpt-category:hover {
  background: rgba(184, 169, 201, 0.3);
  transform: translateY(-2px);
}

.excerpt-category.active {
  background: linear-gradient(135deg, #B8A9C9, #C6DEF1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(184, 169, 201, 0.4);
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.excerpts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.excerpt-card {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(184, 169, 201, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
}

.excerpt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B8A9C9, #C6DEF1, #D4A5B0);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.excerpt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(184, 169, 201, 0.25);
  border-color: rgba(184, 169, 201, 0.4);
}

.excerpt-card:hover::before {
  opacity: 1;
}

.excerpt-quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(184, 169, 201, 0.3);
  line-height: 1;
  user-select: none;
}

.excerpt-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #5a5568;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.excerpt-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(184, 169, 201, 0.3);
  margin-bottom: 0.75rem;
}

.source-title {
  font-weight: 500;
  color: #6b5b7d;
  font-size: 0.9rem;
}

.source-author {
  color: rgba(107, 91, 125, 0.6);
  font-size: 0.85rem;
}

.excerpt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.excerpt-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(198, 222, 241, 0.4);
  border-radius: 10px;
  font-size: 0.7rem;
  color: #6a8ba8;
}

.excerpt-category-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(184, 169, 201, 0.2);
  color: #8a7a9c;
}

.excerpt-category-badge.cat-book {
  background: rgba(184, 169, 201, 0.25);
  color: #7a6a8c;
}

.excerpt-category-badge.cat-poem {
  background: rgba(212, 165, 176, 0.25);
  color: #a86a7a;
}

.excerpt-category-badge.cat-lyric {
  background: rgba(147, 197, 165, 0.25);
  color: #5a8a6a;
}

.excerpt-category-badge.cat-quote {
  background: rgba(198, 180, 150, 0.25);
  color: #8a7a5a;
}

.excerpt-category-badge.cat-other {
  background: rgba(180, 190, 210, 0.25);
  color: #6a7a9a;
}

.no-excerpts {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(107, 91, 125, 0.5);
}

.no-excerpts-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-excerpts p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.no-excerpts-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .excerpts-container {
    grid-template-columns: 1fr;
  }
  
  .excerpt-card {
    padding: 1.5rem 1.25rem 1rem;
  }
  
  .excerpt-categories {
    padding: 0.75rem;
  }
  
  .excerpt-category {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* ---------- About Page ---------- */
.about-character {
  width: 160px;
  height: 160px;
  margin: 3rem auto 2rem;
  position: relative;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.character-body {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 8px 24px rgba(184, 169, 201, 0.4));
}

.about-text {
  max-width: 600px;
  text-align: center;
  line-height: 2.2;
  font-size: 1rem;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 3rem;
}

.about-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.about-section {
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

.about-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-section h3 {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  color: var(--fog-purple);
}

.about-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-section li {
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.03em;
}

/* ---------- 404 Page ---------- */
.error-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.error-text {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--dark-text);
  text-align: center;
  line-height: 2.5;
  letter-spacing: 0.15em;
  opacity: 0.8;
  text-shadow: 0 0 20px rgba(212, 197, 228, 0.4);
  margin-bottom: 3rem;
}

.error-home-btn {
  padding: 1rem 2.5rem;
  background: rgba(184, 169, 201, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: var(--dark-text);
  font-size: 1rem;
  letter-spacing: 0.15em;
  transition: var(--transition-smooth);
}

.error-home-btn:hover {
  background: rgba(184, 169, 201, 0.5);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(184, 169, 201, 0.4);
}

/* ---------- Petal Animation ---------- */
.petal {
  position: fixed;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f8b4c0 50%, #e89aa8 100%);
  border-radius: 50% 0 50% 0;
  pointer-events: none;
  z-index: 9996;
  animation: petalFall linear forwards;
}

@keyframes petalFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- Moon Rise (idle) ---------- */
.idle-moon {
  display: none;
}

@keyframes moonRise {
  to { opacity: 0.9; }
}

@keyframes moonRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Public Form Styles ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(107, 91, 125, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(184, 169, 201, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  color: #5a5568;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-songti);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--fog-purple);
  box-shadow: 0 0 0 3px rgba(184, 169, 201, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}

.btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-songti);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fog-purple), var(--milk-blue));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 169, 201, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(184, 169, 201, 0.2);
  color: #6b5b7d;
}

.btn-secondary:hover {
  background: rgba(184, 169, 201, 0.35);
}

/* ---------- Publish Panel (shared) ---------- */
.publish-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--fog-purple), var(--milk-blue));
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  font-family: var(--font-songti);
  box-shadow: 0 4px 20px rgba(184, 169, 201, 0.3);
}

.publish-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(184, 169, 201, 0.45);
}

.publish-toggle:active {
  transform: translateY(0);
}

.publish-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}

.publish-panel.open {
  max-height: 1200px;
  opacity: 1;
  margin-bottom: 2.5rem;
}

.publish-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(184, 169, 201, 0.3);
  box-shadow: 0 8px 40px rgba(184, 169, 201, 0.15);
}

.publish-card h3 {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: #6b5b7d;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.publish-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(184, 169, 201, 0.2);
}

.publish-header-icon {
  font-size: 1.8rem;
}

.publish-header-text h3 {
  margin-bottom: 0;
}

.publish-header-text p {
  font-size: 0.8rem;
  color: rgba(107, 91, 125, 0.6);
  margin: 0;
}

/* Character counter */
.char-counter {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: rgba(107, 91, 125, 0.5);
  margin-top: 0.25rem;
}

.char-counter.warn {
  color: #c9956b;
}

.char-counter.max {
  color: #a84a56;
}

/* Quick tags */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.quick-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  background: rgba(198, 222, 241, 0.4);
  color: rgba(100, 110, 140, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: var(--font-songti);
}

.quick-tag:hover {
  background: rgba(198, 222, 241, 0.8);
  transform: translateY(-1px);
}

.quick-tag.active {
  background: var(--fog-purple);
  color: #fff;
}

/* Form actions */
.publish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(184, 169, 201, 0.15);
}

/* Gallery upload */
.gallery-upload-zone {
  border: 2px dashed rgba(184, 169, 201, 0.4);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(184, 169, 201, 0.05);
  position: relative;
  overflow: hidden;
}

.gallery-upload-zone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(45deg, transparent, rgba(184, 169, 201, 0.1), transparent);
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-upload-zone.dragover {
  border-color: var(--fog-purple);
  background: rgba(184, 169, 201, 0.15);
  transform: scale(1.01);
}

.gallery-upload-zone.dragover::before {
  opacity: 1;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-upload-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: gentleBounce 2s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.gallery-upload-text {
  color: #6b5b7d;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.gallery-upload-hint {
  color: rgba(107, 91, 125, 0.5);
  font-size: 0.8rem;
}

.gallery-preview-wrap {
  margin-top: 1rem;
  text-align: center;
  animation: fadeSlideDown 0.4s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-preview-img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-file-info {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(107, 91, 125, 0.6);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-change-file {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--fog-purple);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-songti);
}

/* Upload progress */
.upload-progress {
  margin-top: 1rem;
  text-align: center;
}

.upload-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(184, 169, 201, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fog-purple), var(--milk-blue));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.upload-progress-text {
  font-size: 0.8rem;
  color: rgba(107, 91, 125, 0.6);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  padding: 0.75rem 1.5rem;
  background: rgba(107, 91, 125, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 25px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
  background: rgba(120, 170, 140, 0.95);
}

.toast-notification.error {
  background: rgba(212, 112, 124, 0.95);
}

.toast-notification.info {
  background: rgba(107, 91, 125, 0.95);
}

/* Diary quick emotions */
.emoji-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.emoji-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(184, 169, 201, 0.3);
  background: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(184, 169, 201, 0.3);
}

.emoji-btn.selected {
  background: var(--fog-purple);
  border-color: var(--fog-purple);
  transform: scale(1.1);
}

/* Collapsible fields */
.optional-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.optional-fields.open {
  max-height: 400px;
}

.toggle-optional {
  background: none;
  border: none;
  color: rgba(107, 91, 125, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-songti);
}

.toggle-optional:hover {
  color: var(--fog-purple);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: rgba(26, 28, 41, 0.5);
  color: var(--dark-text);
  border-color: rgba(212, 197, 228, 0.2);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: rgba(212, 197, 228, 0.4);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(184, 169, 201, 0.25);
  color: var(--dark-text);
}

[data-theme="dark"] .publish-card {
  background: rgba(26, 28, 41, 0.5);
  border-color: rgba(212, 197, 228, 0.2);
}

[data-theme="dark"] .publish-header {
  border-bottom-color: rgba(212, 197, 228, 0.15);
}

[data-theme="dark"] .quick-tag {
  background: rgba(184, 169, 201, 0.2);
  color: var(--dark-text);
}

[data-theme="dark"] .gallery-upload-zone {
  background: rgba(26, 28, 41, 0.3);
  border-color: rgba(212, 197, 228, 0.3);
}

[data-theme="dark"] .gallery-upload-zone.dragover {
  background: rgba(184, 169, 201, 0.15);
}

[data-theme="dark"] .gallery-upload-text {
  color: var(--dark-text);
}

[data-theme="dark"] .publish-actions {
  border-top-color: rgba(212, 197, 228, 0.15);
}

[data-theme="dark"] .emoji-btn {
  background: rgba(26, 28, 41, 0.5);
  border-color: rgba(212, 197, 228, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page-content {
    padding: 5rem 6% 8rem;
  }

  .publish-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .publish-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .publish-actions {
    flex-direction: column-reverse;
  }

  .publish-actions .btn {
    width: 100%;
  }

  .quick-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-sections {
    grid-template-columns: 1fr;
  }

  .diary-card {
    width: 85% !important;
    margin-left: 10% !important;
    margin-right: 5% !important;
  }

  .gallery-upload-zone {
    padding: 1.5rem 1rem;
  }

  .emoji-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .toast-notification {
    top: 1rem;
    left: 50%;
    right: 50%;
    transform: translateX(-50%) translateY(-20px);
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
  }

  .toast-notification.show {
    transform: translateX(-50%) translateY(0);
  }

  .timeline::before {
    left: 20px;
  }

  .side-widget {
    right: 0.5rem;
    padding: 0.75rem 0.5rem;
  }

  .bottom-nav {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .site-footer {
    bottom: 5.5rem;
  }

  .whisper-text {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
  }

  .whisper-text::before,
  .whisper-text::after {
    width: 12px;
  }

  .whisper-text::before {
    left: -10px;
  }

  .whisper-text::after {
    right: -10px;
  }

  .footer-whispers {
    gap: 1rem;
  }
}

/* ---------- Status Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.badge-success {
  background: rgba(120, 170, 140, 0.2);
  color: #5a8a70;
}

.badge-warning {
  background: rgba(200, 160, 80, 0.2);
  color: #a67c2e;
}

.badge-danger {
  background: rgba(212, 112, 124, 0.2);
  color: #c45060;
}

.btn-success {
  background: linear-gradient(135deg, #78aa8c, #5a8a70);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  font-family: var(--font-songti);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(120, 170, 140, 0.4);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  margin: 0.1rem;
}

/* Review page info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.info-item {
  background: rgba(184, 169, 201, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.info-item .label {
  font-size: 0.75rem;
  color: rgba(107, 91, 125, 0.6);
  margin-bottom: 0.25rem;
}

.info-item .value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6b5b7d;
  font-family: var(--font-songti);
}

@media (max-width: 768px) {
  .badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Sensitive Words Management ---------- */
.sensitive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.sensitive-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(212, 112, 124, 0.12);
  border: 1px solid rgba(212, 112, 124, 0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #c45060;
  transition: all 0.3s ease;
  animation: sensitiveFadeIn 0.3s ease;
}

.sensitive-item:hover {
  background: rgba(212, 112, 124, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 112, 124, 0.2);
}

.sensitive-word {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sensitive-del {
  background: none;
  border: none;
  color: rgba(196, 80, 96, 0.5);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.sensitive-del:hover {
  background: rgba(212, 112, 124, 0.3);
  color: #c45060;
}

@keyframes sensitiveFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .sensitive-grid {
    gap: 0.4rem;
  }
  
  .sensitive-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ---------- Copyright Footer ---------- */
.copyright-footer {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.5rem 1rem 8rem;
  animation: fadeSlideUp 1.2s ease 4s forwards;
  opacity: 0;
}

.copyright-text {
  font-family: var(--font-songti);
  font-size: 0.75rem;
  color: rgba(107, 91, 125, 0.5);
  letter-spacing: 0.12em;
}

.filing-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.filing-links a {
  font-size: 0.7rem;
  color: rgba(107, 91, 125, 0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.filing-links a:hover {
  color: rgba(107, 91, 125, 0.8);
  text-decoration: underline;
}

[data-theme="dark"] .copyright-text {
  color: rgba(212, 197, 228, 0.45);
}

[data-theme="dark"] .filing-links a {
  color: rgba(212, 197, 228, 0.4);
}

[data-theme="dark"] .filing-links a:hover {
  color: rgba(212, 197, 228, 0.75);
}

@media (max-width: 768px) {
  .copyright-footer {
    padding: 1.5rem 1rem 7rem;
    gap: 0.2rem;
  }

  .copyright-text {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .filing-links {
    gap: 0.75rem;
  }

  .filing-links a {
    font-size: 0.6rem;
  }
}
