@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

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

:root {
  --primary: #00acc1;
  --primary-dark: #00838f;
  --primary-light: #4dd0e1;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --bg-light: #e0f2f1;
  --bg-white: #ffffff;
  --text-dark: #263238;
  --text-gray: #546e7a;
  --text-light: #90a4ae;
  --shadow: 0 4px 20px rgba(0, 172, 193, 0.12);
  --shadow-hover: 0 8px 30px rgba(0, 172, 193, 0.2);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  font-weight: 500;
  vertical-align: top;
  margin-top: -8px;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,152,0,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77,208,225,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.banner h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.banner-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.banner-stat {
  text-align: center;
}

.banner-stat .num {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
}

.banner-stat .label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Badge */
.badge-free {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255,152,0,0.4);
}

.badge-hot {
  background: linear-gradient(135deg, #ff5722, #e64a19);
}

.badge-new {
  background: linear-gradient(135deg, #4caf50, #388e3c);
}

.badge-rank {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* Section */
.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.section-more {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  color: var(--accent);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.poster-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.poster-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #b2ebf2, #80deea);
}

.poster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.poster-card:hover .poster-img img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.poster-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.poster-info {
  padding: 14px 16px 18px;
}

.poster-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-gray);
}

.poster-meta .rating {
  color: var(--accent);
  font-weight: 600;
}

.poster-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
}

/* Ranking */
.ranking-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.ranking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ranking-tab {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-light);
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.ranking-tab:hover,
.ranking-tab.active {
  background: var(--primary);
  color: white;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.ranking-item:hover {
  background: var(--bg-light);
}

.ranking-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-light);
  color: var(--text-gray);
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-num {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: white;
}

.ranking-item:nth-child(2) .ranking-num {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.ranking-item:nth-child(3) .ranking-num {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: white;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-meta {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.ranking-rating {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 60px;
  font-size: 0.9rem;
}

.filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-option {
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.filter-option:hover,
.filter-option.active {
  background: var(--primary);
  color: white;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: #cfd8dc;
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #b0bec5;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b0bec5;
  margin-bottom: 14px;
}

.footer-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

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

.footer-stat .num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  display: block;
}

.footer-stat .lbl {
  font-size: 0.75rem;
  color: #78909c;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #78909c;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-white);
  padding: 14px 0;
  border-bottom: 1px solid #b2dfdb;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.breadcrumb-list a {
  color: var(--primary);
}

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

.breadcrumb-list .sep {
  color: var(--text-light);
}

.breadcrumb-list .current {
  color: var(--text-dark);
  font-weight: 500;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #006064 100%);
  color: white;
  padding: 50px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,152,0,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Form */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0,172,193,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0,172,193,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,172,193,0.4);
}

/* Info Cards */
.info-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.info-card h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.info-card p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.about-feature {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.about-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.about-feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
}

.about-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.about-feature p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-block {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-info-block h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eceff1;
}

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

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.contact-item-value {
  font-weight: 500;
  color: var(--text-dark);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  padding: 0 12px;
}

.pagination a:hover,
.pagination .active {
  background: var(--primary);
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    padding: 12px 16px;
  }
  .banner h1 {
    font-size: 2rem;
  }
  .banner p {
    font-size: 1rem;
  }
  .banner-stats {
    gap: 25px;
  }
  .banner-stat .num {
    font-size: 1.6rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .page-banner h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .contact-form {
    padding: 24px;
  }
  .ranking-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .poster-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .banner h1 {
    font-size: 1.6rem;
  }
  .header-inner {
    height: 60px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
  }
}