* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  padding: 20px 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}

.logo a {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
  background: #2c3e50;
  padding: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

nav li:last-child {
  border-right: none;
}

nav a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: 15px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  background: #34495e;
  color: #3498db;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.site-intro {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.site-intro h2 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.8em;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

section {
  margin-bottom: 50px;
}

section h2 {
  color: #2c3e50;
  font-size: 2em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin: 0 0 12px 0;
  color: #2c3e50;
  font-size: 1.3em;
}

.card .meta {
  color: #7f8c8d;
  font-size: 0.9em;
  margin: 8px 0;
}

.card p {
  color: #555;
  line-height: 1.6;
  margin: 10px 0;
}

.card-category,
.topic-tag {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-bottom: 10px;
}

.rank-number {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3);
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.entrance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.entrance-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.entrance-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.6em;
}

.entrance-card a {
  color: white;
}

.list-view {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.list-item {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: #f8f9fa;
}

.list-item h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.2em;
}

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.more-link a:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.detail-page {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.detail-page h1 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 2.2em;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

.basic-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
  border-left: 4px solid #3498db;
}

.basic-info p {
  margin: 10px 0;
  font-size: 1.05em;
}

.summary,
.review {
  margin: 30px 0;
}

.summary h2,
.review h2 {
  color: #2c3e50;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.summary p,
.review p {
  line-height: 1.8;
  color: #555;
  font-size: 1.05em;
}

.related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid #95a5a6;
}

.related-item:hover {
  background: #ecf0f1;
  border-left-color: #3498db;
  transform: translateX(5px);
}

.related-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.page-desc {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 1.05em;
  color: #555;
  border-left: 4px solid #3498db;
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 0;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .logo {
    padding: 15px 20px;
  }

  .logo a {
    font-size: 22px;
  }

  nav a {
    padding: 12px 5px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 25px;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  main {
    padding: 20px 15px;
  }

  .site-intro {
    padding: 25px;
  }

  section h2 {
    font-size: 1.5em;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .entrance-grid {
    grid-template-columns: 1fr;
  }

  .detail-page {
    padding: 25px;
  }

  .detail-page h1 {
    font-size: 1.6em;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 10px 3px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 1.4em;
  }

  .logo a {
    font-size: 20px;
  }
}

.ui-style-5 {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
}
