:root {
  --primary-color: #c82333;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #e0e0e0;
  --hover-bg: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

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

.main-container {
  min-height: calc(100vh - 200px);
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
}

.intro-section {
  background: var(--card-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.intro-section h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.intro-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-section {
  padding: 2rem 0;
}

.content-section.alt {
  background: var(--card-bg);
}

.content-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

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

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

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

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

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

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

.video-card .desc {
  color: #555;
  line-height: 1.6;
}

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

.video-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.video-item h3 {
  margin-bottom: 0.5rem;
}

.video-item h3 a {
  color: var(--text-color);
}

.video-item h3 a:hover {
  color: var(--primary-color);
}

.more-link {
  text-align: center;
  padding: 1rem;
}

.more-link a {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.entry-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.entry-card h3 a {
  color: var(--primary-color);
}

.entry-card p {
  margin-bottom: 1rem;
  color: #666;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.preview-item a {
  color: var(--text-color);
  flex: 1;
}

.preview-item a:hover {
  color: var(--primary-color);
}

.page-header {
  background: var(--card-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
}

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

.page-header p {
  line-height: 1.8;
  color: #555;
}

.list-section {
  padding: 2rem 0;
}

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

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

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.badge {
  background: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.year {
  color: #999;
  font-size: 0.9rem;
}

.video-card-full .tags {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ranking-item {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
}

.rank-num.rank-top {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.rank-num.rank-normal {
  background: #f0f0f0;
  color: #666;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  margin-bottom: 0.5rem;
}

.rank-content .review {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f9f9f9;
  border-left: 3px solid var(--primary-color);
  font-style: italic;
  color: #555;
}

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

.topic-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.latest-item {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-date {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  margin-bottom: 0.5rem;
}

.detail-page {
  background: var(--card-bg);
  padding: 2rem 0;
}

.detail-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.detail-meta {
  margin-bottom: 1.5rem;
}

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

.meta-item {
  display: flex;
  gap: 0.5rem;
}

.meta-item .label {
  font-weight: bold;
  color: #666;
}

.meta-item .value {
  color: var(--text-color);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.detail-tags .tag {
  background: #f0f0f0;
  color: var(--text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.detail-tags .style-tag {
  background: var(--primary-color);
  color: #fff;
}

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

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 0.5rem;
}

.highlight-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.summary-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

.review-text {
  padding: 1.5rem;
  background: #f9f9f9;
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  color: #555;
  line-height: 1.8;
}

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

.footer {
  background: #333;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

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

  .detail-title {
    font-size: 1.8rem;
  }

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

  .latest-item {
    flex-direction: column;
  }

  .latest-date {
    width: 100%;
    height: 60px;
  }

  .ranking-item {
    flex-direction: column;
  }
}