:root {
  --bg-dark: #1a0808;
  --bg-card: #261010;
  --bg-section: #1a0e0e;
  --primary: #ef4444;
  --primary-light: #f87171;
  --accent: #f97316;
  --accent-warm: #fbbf24;
  --gradient-main: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --gradient-hero: linear-gradient(160deg, #1a0808 0%, #3a1010 50%, #1a0e0e 100%);
  --text-primary: #fef2f2;
  --text-secondary: #d4a0a0;
  --text-muted: #8b6b6b;
  --border-color: rgba(239, 68, 68, 0.22);
  --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}
.logo-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.14);
}
.main-nav a.active {
  color: var(--accent);
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.section {
  padding: 80px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s;
}
.card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-section);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-thumb img {
  transform: scale(1.06);
}
.card-thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--gradient-warm);
  color: #fff;
}
.card-thumb .badge-new {
  background: var(--gradient-main);
}
.card-thumb .ep-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.card-body {
  padding: 14px;
}
.card-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.6;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.card-meta .heat {
  color: var(--accent-warm);
  font-weight: 600;
}
.card-meta .tag {
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(239, 68, 68, 0.16);
  color: var(--primary-light);
  font-weight: 600;
}
.breadcrumb {
  padding: 100px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb span {
  margin: 0 8px;
}
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.page-hero {
  padding: 120px 0 40px;
  background: var(--gradient-hero);
  text-align: center;
}
.page-hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary);
  background: rgba(239, 68, 68, 0.14);
  color: var(--accent);
}
.subsection-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}
.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.intro-item {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.intro-item:hover {
  border-color: rgba(239, 68, 68, 0.45);
}
.intro-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.intro-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.float-dl {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 30px var(--shadow-glow);
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.float-dl.show {
  display: flex;
  transform: translateY(0);
}
.float-dl-close {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.float-dl-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.float-dl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.float-dl-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-dl-text span {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-dl-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s;
  white-space: nowrap;
}
.float-dl-btn:active {
  transform: scale(0.95);
}
@media (min-width: 769px) {
  .float-dl {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .drama-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .header-inner {
    height: 58px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(26, 8, 8, 0.98);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .site-footer {
    padding: 32px 0 0;
    margin-top: 44px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
    margin-bottom: 20px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-brand .logo {
    font-size: 16px;
    gap: 8px;
  }
  .footer-brand .logo img {
    width: 28px;
    height: 28px;
  }
  .footer-brand p {
    font-size: 11.5px;
    line-height: 1.6;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .footer-col a {
    font-size: 11.5px;
    padding: 3px 0;
    line-height: 1.4;
  }
  .footer-bottom {
    padding: 14px 0 88px;
    font-size: 10.5px;
    gap: 5px;
    flex-direction: column;
    text-align: center;
    line-height: 1.5;
  }
  .section {
    padding: 44px 0;
  }
  .breadcrumb {
    padding-top: 80px;
  }
  .page-hero {
    padding: 96px 0 26px;
  }
  .page-hero h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .page-hero p {
    font-size: 14px;
  }
  .subsection-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    margin-bottom: 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex: 0 0 auto;
    padding: 6px 15px;
    font-size: 12.5px;
  }
  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-body {
    padding: 10px;
  }
  .card-body h3 {
    font-size: 13.5px;
    margin-bottom: 4px;
  }
  .card-body p {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .card-meta {
    font-size: 10.5px;
  }
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .intro-item {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .intro-item h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .intro-item p {
    font-size: 12px;
    line-height: 1.65;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-thumb .badge,
  .card-thumb .ep-count {
    font-size: 10px;
    padding: 2px 6px;
  }
}
@media (max-width: 380px) {
  .float-dl {
    padding: 10px;
    gap: 9px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .float-dl-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }
  .float-dl-text strong {
    font-size: 12.5px;
  }
  .float-dl-text span {
    font-size: 10px;
  }
  .float-dl-btn {
    padding: 9px 14px;
    font-size: 12px;
  }
}
