/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  width: 100%;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 1rem auto;
  max-width: 600px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.4s cubic-bezier(.77,0,.18,1);
  border: 2px solid #e5e5e5;
  opacity: 0;
  transform: translateY(12px);
  animation: card-fade-in 0.85s cubic-bezier(.77,0,.18,1) both;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.012);
}
@keyframes card-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.image {
  flex: 0 0 80px;
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.placeholder {
  width: 80px;
  height: 100px;
  background: #f7f7fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content {
  flex: 1;
}
.title {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.author {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.25rem;
}
.category {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.category-dot {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  margin-right: 0.3em;
  background: #888;
}
.shorttext {
  font-size: 1rem;
  color: #333;
}
.source {
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 0.25rem;
  font-style: italic;
}

.class-literature-prose .category {
  color: #3498db;
}
.class-literature-prose .category-dot {
  background: #3498db;
}
.class-literature-poetry .category {
  color: #e84393;
}
.class-literature-poetry .category-dot {
  background: #e84393;
}
.class-art-and-form .category {
  color: #27ae60;
}
.class-art-and-form .category-dot {
  background: #27ae60;
}
.class-music .category {
  color: #f1c40f;
}
.class-music .category-dot {
  background: #f1c40f;
}
.class-film-and-stage-art .category {
  color: #8e44ad;
}
.class-film-and-stage-art .category-dot {
  background: #8e44ad;
}
.class-knowledge-and-nonfiction .category {
  color: #00bcd4;
}
.class-knowledge-and-nonfiction .category-dot {
  background: #00bcd4;
}
.class-law-and-right .category {
  color: #e67e22;
}
.class-law-and-right .category-dot {
  background: #e67e22;
}
.class-religion .category {
  color: #9b59b6;
}
.class-religion .category-dot {
  background: #9b59b6;
}
.class-economy .category {
  color: #16a085;
}
.class-economy .category-dot {
  background: #16a085;
}
.class-inventions .category {
  color: #e17055;
}
.class-inventions .category-dot {
  background: #e17055;
}
.class-public-life .category {
  color: #2980b9;
}
.class-public-life .category-dot {
  background: #2980b9;
}

body {
  background: #f7f7fa;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.hero {
  background: linear-gradient(120deg, #f4f6fa 0%, #e9ecf3 100%);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #2d3a5a;
  margin: 0 0 0.7rem 0;
  letter-spacing: -1px;
  display: inline-block;
}
.hero-title {
  animation: fade-in-down 1.2s cubic-bezier(.77,0,.18,1) both;
  background: linear-gradient(90deg, #2d3a5a 60%, #4b4b8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.18rem;
  color: #4b4b8f;
  margin: 0 auto;
  max-width: 600px;
  animation: fade-in-down 1.2s cubic-bezier(.77,0,.18,1) both;
  animation-delay: 0.08s;
}
.emoji {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.2em;
}
@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.wiki-link {
  margin-left: 0.4em;
  font-size: 0.85em;
  color: #888;
  text-decoration: none;
  opacity: 0.85;
  vertical-align: baseline;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: none;
  transition: opacity 0.2s, text-decoration 0.2s;
}
.wiki-link:hover, .wiki-link:focus {
  opacity: 1;
  text-decoration: none;
  background: #f0f0f0;
}
