/* 地球影视 - ui-style-2 - Layout D */

:root {
  --primary-color: #2563eb;
  --secondary-color: #475569;
  --accent-color: #f59e0b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --hover-bg: #f1f5f9;
}

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

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

/* Header & Navigation */
.header {
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}

.nav a:hover,
.nav a.active {
  background: var(--hover-bg);
  color: var(--primary-color);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav {
    gap: 0.25rem;
  }
  .nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
  }
}

/* Main Content */
.main {
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

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

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.hero-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-intro p {
  margin-bottom: 0.75rem;
}

/* Sections */
.section-title {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-desc a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Video Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.video-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.video-card h3 a {
  color: inherit;
}

.video-card .meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.video-card .one-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Featured Links */
.featured-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.featured-link {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* List Pages */
.page-intro {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  line-height: 1.8;
}

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

.list-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.list-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.list-item .meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.rank-badge,
.genre-tag,
.year-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.rank-badge {
  background: var(--accent-color);
  color: white;
}

.genre-tag {
  background: var(--primary-color);
  color: white;
}

.year-badge {
  background: var(--secondary-color);
  color: white;
}

/* Detail Page */
.detail-page section {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.one-line-text,
.summary-text,
.review-text {
  line-height: 1.8;
  color: var(--text-color);
}

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

.related-item {
  padding: 1rem;
  background: var(--hover-bg);
  border-radius: 6px;
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item .one-line {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-secondary);
}

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

  .section-title {
    font-size: 1.4rem;
  }

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

  .featured-links {
    grid-template-columns: 1fr;
  }
}
