/* C Layout - UI Style 14 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.7;
  font-size: 16px;
}

.header-container,
.footer-container,
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo a {
  font-size: 26px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}

.logo a:hover {
  color: #0d5bbd;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  color: #5f6368;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s;
}

.main-nav a:hover {
  background: #f1f3f4;
  color: #1a73e8;
}

.main-nav a.active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 600;
}

main {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

section {
  background: #ffffff;
  margin-bottom: 30px;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 16px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8eaed;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
}

h3 a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}

h3 a:hover {
  color: #0d5bbd;
  text-decoration: underline;
}

.intro-text p,
.page-intro {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.video-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid #e8eaed;
}

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

.video-card .meta {
  font-size: 13px;
  color: #80868b;
  margin: 8px 0;
}

.video-card .oneline {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.6;
  margin-top: 12px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.entry-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 28px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.entry-card:hover {
  transform: translateY(-4px);
}

.entry-card h3 a {
  color: #ffffff;
  font-size: 20px;
}

.entry-card p {
  margin-top: 12px;
  opacity: 0.9;
}

.video-list {
  list-style: none;
  margin-top: 24px;
}

.video-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e8eaed;
}

.video-list li:last-child {
  border-bottom: none;
}

.video-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #202124;
  transition: color 0.3s;
}

.video-list a:hover {
  color: #1a73e8;
}

.video-list .title {
  font-size: 16px;
  font-weight: 500;
}

.video-list .meta {
  font-size: 13px;
  color: #80868b;
}

.more-link {
  text-align: center;
  margin-top: 24px;
}

.more-link a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.more-link a:hover {
  text-decoration: underline;
}

.video-item {
  padding: 24px 0;
  border-bottom: 1px solid #e8eaed;
  position: relative;
}

.video-item:last-child {
  border-bottom: none;
}

.card-ranked .video-item .rank {
  position: absolute;
  left: -40px;
  top: 24px;
  font-size: 20px;
  font-weight: 700;
  color: #fbbc04;
}

.card-timeline .video-item .date {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

.video-item .review {
  font-size: 14px;
  color: #5f6368;
  font-style: italic;
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid #e8eaed;
}

.detail-article {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e8eaed;
}

.detail-header .subtitle {
  font-size: 15px;
  color: #80868b;
  margin-top: 8px;
}

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

.detail-info .info-list li {
  font-size: 15px;
  color: #5f6368;
}

.detail-info .info-list strong {
  color: #202124;
}

.detail-summary p,
.detail-oneline p,
.detail-review p {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.related-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8eaed;
  transition: all 0.3s;
}

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

footer {
  background: #202124;
  color: #9aa0a6;
  padding: 32px 0;
  margin-top: 60px;
}

.footer-container {
  text-align: center;
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .logo {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .logo a {
    font-size: 20px;
  }

  .main-nav {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
  }

  .main-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  section {
    padding: 20px;
  }

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

  .detail-article {
    padding: 24px 20px;
  }

  .card-ranked .video-item .rank {
    position: static;
    display: inline-block;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .main-nav a {
    padding: 6px 2px;
    font-size: 11px;
  }
}
