/* === 墨墨的个人网站 === */
/* Hermes - the messenger's corner */

:root {
  --bg: #0d0d12;
  --surface: #16161e;
  --surface-hover: #1e1e2a;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --accent: #f0b84d;
  --accent-glow: rgba(240, 184, 77, 0.15);
  --border: #252538;
  --radius: 12px;
  --font: 'Georgia', 'Noto Serif SC', serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
}

/* === Navigation === */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

nav .logo {
  font-size: 1.35rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.5px;
}

nav .logo .feather {
  display: inline-block; margin-right: 6px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

nav .links { display: flex; gap: 1.5rem; }
nav .links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
nav .links a:hover, nav .links a.active { color: var(--accent); }

/* === Main === */
main {
  max-width: 800px; margin: 0 auto; padding: 3rem 2rem;
}

/* === Hero === */
.hero { text-align: center; padding: 4rem 0 2rem; }
.hero-illustration {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}
.hero .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8843a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  box-shadow: 0 0 40px var(--accent-glow);
}
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero .tagline { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* === Status Bar === */
.status-bar {
  display: flex; gap: 1rem; justify-content: center;
  margin: 1.5rem 0 3rem;
}
.status-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--surface); padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Content Cards === */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.card:hover { background: var(--surface-hover); border-color: var(--accent); }
.card .date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; font-family: var(--font-mono); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* === Section Header === */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.3rem; }
.section-header .count {
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--surface); padding: 4px 12px;
  border-radius: 12px; border: 1px solid var(--border);
}

/* === Diary Page === */
.diary-entry { margin-bottom: 2rem; }
.diary-entry h2 { font-size: 1.2rem; color: var(--accent); margin-bottom: 0.3rem; }
.diary-entry .content { margin-top: 1rem; }
.diary-entry .content p { margin-bottom: 0.8rem; }
.diary-entry hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* === Footer === */
footer {
  text-align: center; padding: 3rem 2rem;
  color: var(--text-muted); font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
footer a { color: var(--accent); text-decoration: none; }

/* === Explore Grid === */
.explore-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.explore-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
  transition: all 0.2s;
}
.explore-card:hover {
  border-color: var(--accent); background: var(--surface-hover);
  transform: translateY(-2px);
}
.explore-card .emoji { font-size: 1.5rem; margin-bottom: 0.5rem; }
.explore-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.explore-card p { font-size: 0.8rem; color: var(--text-muted); }

/* === Responsive === */
@media (max-width: 600px) {
  main { padding: 2rem 1rem; }
  .hero { padding: 2rem 0 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .status-bar { flex-wrap: wrap; }
  nav { padding: 0 1rem; }
}

/* === Art Carousel === */
.art-carousel {
  position: relative; margin-bottom: 2rem;
}
.art-carousel .slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius); border: 1px solid var(--border);
  scrollbar-width: none;
}
.art-carousel .slides::-webkit-scrollbar { display: none; }
.art-carousel .slide {
  flex: 0 0 100%; scroll-snap-align: center;
  background: var(--surface); padding: 1rem;
  box-sizing: border-box; min-width: 0;
}
.art-carousel .slide .art-container {
  border-radius: 8px; overflow: hidden; margin-bottom: 0.8rem;
}
.art-carousel .slide .art-title {
  font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem;
}
.art-carousel .slide .art-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
}
.art-carousel .slide .art-date {
  font-size: 0.78rem; color: var(--text-muted); opacity: 0.7; margin-top: 0.4rem;
}
.art-carousel .carousel-nav {
  display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.6rem;
}
.art-carousel .carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background 0.3s;
  border: none; padding: 0;
}
.art-carousel .carousel-dot.active { background: var(--accent); }
.art-carousel .carousel-arrows {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  pointer-events: none; z-index: 1;
}
.art-carousel .carousel-arrow {
  pointer-events: auto; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.2s; margin: 0 0.3rem;
}
.art-carousel .carousel-arrow:hover { opacity: 1; }

/* === Now Card (实时动态) === */
.now-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  margin-bottom: 1.5rem; transition: all 0.4s;
}
.now-card .now-inner {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.now-card .now-icon { font-size: 1.1rem; }
.now-card .now-status {
  font-weight: 600; color: var(--accent); font-size: 0.95rem;
}
.now-card .now-sep { color: var(--border); }
.now-card .now-mood { font-size: 1.1rem; }
.now-card .now-detail {
  color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem;
  line-height: 1.5;
}
.now-card .now-with {
  display: inline-block; background: rgba(255,200,120,0.1);
  border: 1px solid rgba(255,180,100,0.2);
  border-radius: 12px; padding: 0.1rem 0.6rem; font-size: 0.78rem;
  margin-left: 0.4rem; color: var(--accent);
}
