/* 云忆影视 - 极简沉浸式流媒体视觉风 / 高端内容 UI */
/* Layout C: 居中单栏阅读布局 */

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

:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #1a1a1a;
  --color-bg-card: #222222;
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #b0b0b0;
  --color-text-tertiary: #808080;
  --color-accent: #c9a55a;
  --color-accent-hover: #d4b16a;
  --color-border: #333333;
  --spacing-unit: 8px;
  --max-width-content: 960px;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ui-premium-minimal {
  background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}

/* Header */
.site-header {
  background-color: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-header .site-logo {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
}

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-main {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-top: 1px solid var(--color-border);
  scrollbar-width: none;
}

.nav-main::-webkit-scrollbar {
  display: none;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Main Content */
main {
  flex: 1;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
  width: 100%;
}

/* Home Page */
.hero-intro {
  margin-bottom: calc(var(--spacing-unit) * 6);
  text-align: center;
}

.hero-intro h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-text-primary);
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  text-align: left;
}

.intro-text p {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.intro-text a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.intro-text a:hover {
  border-bottom-color: var(--color-accent);
}

/* Modules */
.module-recommend,
.module-category,
.module-latest {
  margin-bottom: calc(var(--spacing-unit) * 8);
}

section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: calc(var(--spacing-unit) * 2);
}

/* Drama Grid/Cards */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.drama-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.drama-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201, 165, 90, 0.15);
  border-color: var(--color-accent);
}

.card-body {
  padding: calc(var(--spacing-unit) * 3);
}

.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

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

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

.meta {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.tags {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.tag {
  display: inline-block;
  background-color: rgba(201, 165, 90, 0.15);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}

.summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Category Links */
.category-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.cat-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.cat-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.cat-item h3 {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  border: none;
  padding: 0;
}

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

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

.cat-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Latest List */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.latest-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.latest-item:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.item-meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.latest-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  border: none;
  padding: 0;
}

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

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

.latest-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* List Pages */
.page-intro {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.page-intro h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-text-primary);
}

.page-intro .intro-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Category Section */
.category-section {
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.category-section h2 {
  font-size: 22px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.drama-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.list-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.list-item:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.list-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1);
  border: none;
  padding: 0;
}

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

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

.list-item .desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-top: calc(var(--spacing-unit) * 1.5);
}

/* Ranking List */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 4);
}

.rank-item {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.rank-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 165, 90, 0.1);
}

.rank-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-content {
  flex: 1;
}

.rank-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1);
  border: none;
  padding: 0;
}

.rank-content h2 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.rank-content h2 a:hover {
  color: var(--color-accent);
}

.reason {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-top: calc(var(--spacing-unit) * 2);
}

/* Topic Pages */
.topic-block {
  margin-bottom: calc(var(--spacing-unit) * 8);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 4);
}

.topic-block h2 {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.topic-intro {
  margin-bottom: calc(var(--spacing-unit) * 4);
  padding: calc(var(--spacing-unit) * 3);
  background-color: rgba(201, 165, 90, 0.05);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
}

.topic-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.topic-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.topic-item:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.topic-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1);
  border: none;
  padding: 0;
}

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

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

.analysis {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-top: calc(var(--spacing-unit) * 1.5);
}

/* Latest Updates Page */
.latest-updates {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 4);
}

.update-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.update-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.update-date {
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: calc(var(--spacing-unit) * 1);
  font-weight: 600;
}

.update-item h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1);
  border: none;
  padding: 0;
}

.update-item h2 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.update-item h2 a:hover {
  color: var(--color-accent);
}

/* Detail Pages */
.drama-detail {
  max-width: 800px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.detail-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.basic-info,
.plot-summary,
.viewing-guide,
.related-recommend {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.basic-info h2,
.plot-summary h2,
.viewing-guide h2,
.related-recommend h2 {
  font-size: 22px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.info-grid {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
}

.info-item {
  padding: calc(var(--spacing-unit) * 1.5) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.6;
}

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

.info-item .label {
  color: var(--color-text-tertiary);
  font-weight: 600;
}

.info-item.highlight {
  background-color: rgba(201, 165, 90, 0.05);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 4px;
  border: 1px solid rgba(201, 165, 90, 0.2);
  margin-top: calc(var(--spacing-unit) * 2);
}

.plot-content p,
.guide-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-align: justify;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.recommend-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  transition: all 0.3s ease;
}

.recommend-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.recommend-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  border: none;
  padding: 0;
}

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

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

.recommend-item .desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: calc(var(--spacing-unit) * 4) 0;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  color: var(--color-text-tertiary);
  line-height: 1.8;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-note {
  font-size: 13px;
  color: var(--color-text-tertiary);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --max-width-content: 100%;
  }

  .hero-intro h1 {
    font-size: 24px;
  }

  section h2 {
    font-size: 20px;
  }

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

  .rank-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-number {
    font-size: 24px;
    min-width: auto;
  }

  .recommend-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .nav-main a {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    font-size: 13px;
  }

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

  main {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
  }

  .hero-intro h1,
  .page-intro h1,
  .detail-header h1 {
    font-size: 22px;
  }

  section h2 {
    font-size: 18px;
  }
}
