/* soft-pink - Layout A */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-header,
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.site-header h1,
.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.site-intro p {
  margin: 0.5rem 0;
  color: #666;
  line-height: 1.8;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #0066cc;
  padding-left: 1rem;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.card-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #0066cc;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
}

.video-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.video-card h3 a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s;
}

.video-card h3 a:hover {
  color: #0066cc;
}

.card-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.card-meta span {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

.card-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.link-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.link-card h3 {
  margin-bottom: 0.75rem;
  color: #0066cc;
  font-size: 1.2rem;
}

.link-card p {
  color: #666;
  font-size: 0.95rem;
}

.intro-section p {
  line-height: 1.8;
  color: #666;
}

/* 列表页 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 详情页 */
.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.detail-subtitle {
  color: #999;
  font-size: 1rem;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #0066cc;
  padding-left: 1rem;
}

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

.detail-info dt {
  font-weight: bold;
  color: #666;
}

.detail-info dd {
  color: #333;
}

.detail-oneline p,
.detail-summary p,
.detail-review p {
  line-height: 1.8;
  color: #555;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .site-header h1,
  .page-header h1 {
    font-size: 1.5rem;
  }

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

  .detail-page {
    padding: 1.5rem;
  }

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

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