/* 工业硬朗 - Layout G */

:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.site-header, .page-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.site-header h1, .page-header h1 {
  font-size: 1.8rem;
  margin: 1rem 0;
  line-height: 1.4;
}

.page-header .intro {
  max-width: 800px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.95;
}

nav a.active {
  color: var(--primary-color);
  font-weight: bold;
}

.intro-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  line-height: 1.8;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

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

.video-card, .video-card-full, .video-card-latest, .related-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3, .video-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.video-card h3 a, .video-card h4 a {
  transition: color 0.3s;
}

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

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.oneline, .genre, .tags {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

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

.video-item, .video-item-ranked {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s;
}

.video-item:hover, .video-item-ranked:hover {
  transform: translateX(8px);
}

.rank, .rank-badge {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.video-item h3, .video-item-ranked h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.video-item-ranked .item-content {
  flex: 1;
}

.more-link {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
}

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

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

.topic-group {
  margin-bottom: 2.5rem;
}

.group-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.date-label {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.detail-page {
  max-width: 900px;
}

.video-detail h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.video-detail section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.video-detail h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.info-list {
  list-style: none;
  line-height: 2;
}

.info-list li {
  padding: 0.3rem 0;
}

.oneline-text, .summary-text, .review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.related-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

footer {
  background: #333;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .site-header h1, .page-header h1 {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.5rem;
  }

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

  section h2 {
    font-size: 1.3rem;
  }

  .video-detail h1 {
    font-size: 1.5rem;
  }
}
