/* ===== Mo尘博客 - 新粗野主义风格 ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background-color: #fef9ef;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Layout */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.site-nav a:hover { color: #e85d04; }

/* Hero */
.hero { padding: 3rem 0; }
.hero-intro {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.hero-avatar {
  width: 80px;
  height: 80px;
  background: #fffbe0;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.hero-text h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.hero-text p { color: #444; font-size: 1.05rem; margin-bottom: 1rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Neo Tag */
.neo-tag {
  background: #fffbe0;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 5px solid #e85d04;
}

/* Post Grid & Card */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.post-card {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}
.post-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}
.post-card-date { font-size: 0.82rem; color: #666; font-weight: 600; margin-bottom: 0.5rem; }
.post-card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card-desc { font-size: 0.88rem; color: #555; flex-grow: 1; margin-bottom: 0.75rem; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Neo Button */
.neo-btn {
  display: inline-block;
  background: #4361ee;
  color: #fff !important;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 0.65rem 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.neo-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.neo-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

/* Friends Grid */
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.friend-card {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.friend-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.friend-avatar { font-size: 2rem; margin-bottom: 0.5rem; }
.friend-name { font-weight: 800; font-size: 1rem; margin-bottom: 0.25rem; }
.friend-desc { font-size: 0.82rem; color: #666; }

/* Blog List Page */
.blog-list { padding: 2rem 0; }
.blog-list-item {
  display: block;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-list-item:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.blog-list-item-date { font-size: 0.82rem; color: #888; font-weight: 600; }
.blog-list-item-title { font-size: 1.15rem; font-weight: 800; margin-top: 0.25rem; }
.blog-list-item-desc { font-size: 0.9rem; color: #555; margin-top: 0.35rem; }

/* Blog Post Page */
.prose { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }
.prose h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  border-bottom: 4px solid #000;
  padding-bottom: 0.75rem;
}
.prose-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #ccc;
  font-size: 0.88rem;
  color: #666;
}
.prose-meta strong { color: #333; }
.prose-tag {
  background: #4cc9f0;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 5px solid #e85d04;
}
.prose h3 { font-size: 1.2rem; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.prose strong { font-weight: 800; color: #111; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a {
  color: #4361ee;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: #e85d04; }
.prose blockquote {
  background: #fffbe0;
  border-left: 5px solid #000;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.12);
  font-style: italic;
}
.prose pre {
  background: #1a1a2e;
  color: #f8f8f2;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose code {
  background: #e8f0fe;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 0.15rem 0.4rem;
  font-size: 0.88em;
  font-weight: 600;
}
.prose pre code {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 1em;
}
.prose hr {
  border: none;
  height: 3px;
  background: #000;
  margin: 2.5rem 0;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}
.prose img {
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  margin: 1.25rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}
.prose th {
  background: #e85d04;
  color: #fff;
  font-weight: 800;
  padding: 0.75rem;
  text-align: left;
  border: 2px solid #000;
}
.prose td { padding: 0.6rem 0.75rem; border: 2px solid #ddd; }

/* About Page */
.about-page { padding: 2rem 0; }
.about-hero {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.about-hero-avatar { font-size: 4rem; margin-bottom: 1rem; }
.about-hero h1 { font-size: 2.2rem; font-weight: 900; }
.about-hero p { font-size: 1.05rem; color: #555; margin-top: 0.5rem; }
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.about-info-card {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.25rem;
}
.about-info-label { font-size: 0.8rem; font-weight: 800; color: #e85d04; text-transform: uppercase; letter-spacing: 0.08em; }
.about-info-value { font-weight: 700; margin-top: 0.25rem; font-size: 0.95rem; }

/* Friends Page */
.friends-page { padding: 2rem 0; }
.friends-intro {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.friends-intro h2 { font-weight: 900; margin-bottom: 0.5rem; }
.friends-apply {
  background: #d8f3dc;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #fff;
  border-top: 3px solid #000;
  margin-top: 3rem;
  padding: 1.5rem 0;
}
.site-footer .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-weight: 600; opacity: 0.85; transition: opacity 0.15s; }
.footer-links a:hover { opacity: 1; color: #ffd60a !important; }

/* Animations */
.animate-in {
  animation: fadeInUp 0.5s ease-out both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 640px) {
  .hero-intro { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .post-grid { grid-template-columns: 1fr; }
  .friends-grid { grid-template-columns: 1fr 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .site-footer .container-wide { flex-direction: column; text-align: center; }
  .prose h1 { font-size: 1.75rem; }
}
