
/* 全局样式 */
:root {
  --primary-color: #2c5282;
  --secondary-color: #4a5568;
  --accent-color: #ed8936;
  --bg-color: #f7fafc;
  --text-color: #2d3748;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
}

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

/* 页面头部 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero .intro {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.page-header {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1em;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 区块样式 */
section {
  background: white;
  padding: 40px 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

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

.card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.card h3 a:hover {
  color: var(--accent-color);
}

.card .meta {
  color: #718096;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.card .one-line {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 链接卡片 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.link-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.link-card p {
  opacity: 0.9;
  font-size: 0.95em;
}

/* 列表视图 */
.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-item {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.list-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
}

.list-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.list-item h3 a:hover {
  color: var(--accent-color);
}

.list-item .meta {
  color: #718096;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.list-item .summary {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 列表页卡片 */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.list-card {
  background: white;
  padding: 25px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s;
}

.list-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
}

.list-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.list-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.list-card h3 a:hover {
  color: var(--accent-color);
}

.list-card .meta {
  color: #718096;
  font-size: 0.95em;
  margin-bottom: 12px;
}

.list-card .one-line {
  color: var(--secondary-color);
  line-height: 1.7;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.list-card .review {
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95em;
  font-style: italic;
  padding-left: 15px;
  border-left: 3px solid var(--accent-color);
}

/* 详情页 */
.detail-page {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

.video-detail header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 40px;
}

.video-detail h1 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.video-detail .subtitle {
  color: #718096;
  font-size: 1.1em;
}

.info-section {
  margin-bottom: 40px;
}

.info-section h2 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px 20px;
  font-size: 1.05em;
}

.info-list dt {
  font-weight: 600;
  color: var(--secondary-color);
}

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

.highlight-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.highlight-section h2 {
  color: white;
  border-color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.highlight {
  font-size: 1.3em;
  line-height: 1.8;
  font-weight: 500;
}

.summary-section, .review-section {
  margin-bottom: 40px;
}

.summary-section h2, .review-section h2 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.summary, .review {
  font-size: 1.1em;
  line-height: 1.9;
  color: var(--text-color);
}

.review {
  font-style: italic;
  padding: 20px;
  background: #f7fafc;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.related-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.related-section h2 {
  font-size: 1.8em;
  margin-bottom: 25px;
}

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

.related-card {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
}

.related-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--accent-color);
}

.related-card .meta {
  color: #718096;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.related-card .one-line {
  color: var(--secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #718096;
  font-size: 0.95em;
  margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8em;
  }

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

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

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

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

  .info-list {
    grid-template-columns: 100px 1fr;
    gap: 10px 15px;
    font-size: 0.95em;
  }

  .detail-page {
    padding: 20px;
  }

  section {
    padding: 25px 20px;
  }
}

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

  .hero {
    padding: 40px 20px;
  }

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