
:root {
  --primary: #2c5aa0;
  --secondary: #34a853;
  --accent: #ea4335;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

nav {
  background: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav .logo {
  font-size: 1.25rem;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

nav .logo a {
  color: var(--primary);
}

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

nav li {
  flex: 1 1 0;
  min-width: 0;
}

nav a {
  display: block;
  padding: 1rem 0.5rem;
  text-align: center;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul a:hover {
  background: var(--bg);
  color: var(--primary);
}

main {
  flex: 1;
  padding: 2rem 0;
}

.hero {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h3, .card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card h3 a, .card h4 a {
  color: var(--text);
  transition: color 0.3s;
}

.card h3 a:hover, .card h4 a:hover {
  color: var(--primary);
}

.card .meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card .desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.card .review {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
}

.more-link a:hover {
  color: var(--accent);
}

.link-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: block;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: var(--primary);
  color: white;
}

.link-card h3 {
  margin-bottom: 0.5rem;
}

.link-card p {
  color: var(--text-light);
}

.link-card:hover p {
  color: rgba(255,255,255,0.9);
}

.list-page {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.page-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.list-card {
  position: relative;
  padding-left: 1.5rem;
}

.list-card .rank {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.list-card .date {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.detail-page {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-page header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.detail-page header .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.detail-page section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.detail-page section:last-child {
  border-bottom: none;
}

.detail-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem 1rem;
}

.info dt {
  font-weight: 500;
  color: var(--text-light);
}

.info dd {
  color: var(--text);
}

.oneline .highlight {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--primary);
  font-weight: 500;
  padding: 1rem;
  background: rgba(44, 90, 160, 0.05);
  border-left: 4px solid var(--primary);
}

.summary p, .review p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.related .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  margin-top: auto;
}

@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    gap: 0;
  }

  nav .logo {
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  nav ul {
    width: 100%;
  }

  nav a {
    padding: 0.8rem 0.3rem;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .intro {
    font-size: 1rem;
  }

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

  .detail-page header h1 {
    font-size: 1.75rem;
  }

  .info dl {
    grid-template-columns: 80px 1fr;
  }
}
