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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: #18191c;
  font-size: 14px;
  line-height: 1.5;
}

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

ul {
  list-style: none;
}

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

/* ===== 左侧纵向导航栏 ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: #fff;
  border-right: 1px solid #e3e5e7;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f1f2f3;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #fb7299;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb7299, #ff9eb5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f2f3;
}

.sidebar-search input {
  width: 100%;
  height: 34px;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  background: #f7f8fa;
  outline: none;
  transition: all 0.2s;
}

.sidebar-search input:focus {
  border-color: #fb7299;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(251, 114, 153, 0.1);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
}

.nav-section-title {
  font-size: 11px;
  color: #9499a0;
  font-weight: 600;
  padding: 10px 12px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #61666d;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: #f7f8fa;
  color: #fb7299;
}

.nav-item.active {
  background: #fff0f3;
  color: #fb7299;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background: #fb7299;
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #fb7299;
  color: #fff;
  font-weight: 600;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid #f1f2f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8d8ff, #fb7299);
  flex-shrink: 0;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-level {
  font-size: 11px;
  color: #9499a0;
}

.sidebar-upload {
  padding: 0 16px 16px;
}

.upload-btn {
  width: 100%;
  padding: 8px 0;
  border-radius: 6px;
  background: #fb7299;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #fc8bab;
}

/* ===== 主内容区 ===== */
.main-content {
  margin-left: 220px;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.banner-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
  cursor: pointer;
}

.banner-slides {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.banner-main:hover .banner-slide.active img {
  transform: scale(1.03);
}

.banner-slide .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.banner-slide .banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.banner-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fb7299;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.banner-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 12px;
}

.banner-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.banner-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.banner-dot:hover {
  background: #fff;
}

.banner-dot.active {
  background: #fb7299;
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(251, 114, 153, 0.6);
}

/* 侧边排行榜 */
.side-rank {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.side-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f2f3;
}

.side-rank-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-rank-more {
  font-size: 12px;
  color: #9499a0;
  cursor: pointer;
}

.side-rank-more:hover {
  color: #fb7299;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.rank-item:hover {
  background: #f7f8fa;
}

.rank-num {
  width: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #9499a0;
  flex-shrink: 0;
  font-style: italic;
}

.rank-item:nth-child(2) .rank-num {
  color: #ffb800;
}

.rank-item:nth-child(3) .rank-num {
  color: #c0c4cc;
}

.rank-item:nth-child(4) .rank-num {
  color: #e6a23c;
}

.rank-thumb {
  width: 44px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rank-name {
  font-size: 13px;
  font-weight: 500;
  color: #18191c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.rank-item:hover .rank-name {
  color: #fb7299;
}

.rank-heat {
  font-size: 11px;
  color: #9499a0;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== 内容区块通用 ===== */
.section {
  margin-top: 28px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #fb7299;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.filter-tab {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #61666d;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #fb7299;
}

.filter-tab.active {
  background: #fb7299;
  color: #fff;
  font-weight: 500;
}

.section-more {
  font-size: 13px;
  color: #9499a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

.section-more:hover {
  color: #fb7299;
}

/* ===== 分类导航条 ===== */
.category-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cat-label {
  font-size: 13px;
  color: #9499a0;
  font-weight: 500;
  margin-right: 4px;
}

.cat-item {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: #61666d;
  cursor: pointer;
  transition: all 0.2s;
  background: #f7f8fa;
}

.cat-item:hover {
  color: #fb7299;
  background: #fff0f3;
}

.cat-item.active {
  background: #fb7299;
  color: #fff;
  font-weight: 500;
}

/* ===== 番剧卡片网格 ===== */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.anime-card {
  cursor: pointer;
}

.anime-cover {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f2f3;
  margin-bottom: 8px;
}

.anime-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.anime-card:hover .anime-cover img {
  transform: scale(1.06);
}

.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

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

.badge-new {
  background: linear-gradient(135deg, #51cf66, #37b24d);
}

.badge-vip {
  background: linear-gradient(135deg, #ffd43b, #fab005);
  color: #5c4400;
}

.cover-ep {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 8px 6px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.cover-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anime-card:hover .cover-mask {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fb7299;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.anime-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.anime-title {
  font-size: 14px;
  font-weight: 500;
  color: #18191c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.anime-card:hover .anime-title {
  color: #fb7299;
}

.anime-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9499a0;
}

.anime-rating {
  color: #ff9f43;
  font-weight: 600;
}

.anime-follow {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== 分页控件 ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  background: #fff;
  color: #61666d;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: #fb7299;
  color: #fb7299;
}

.page-btn.active {
  background: #fb7299;
  border-color: #fb7299;
  color: #fff;
  font-weight: 600;
}

.page-btn.disabled {
  color: #c9ccd0;
  cursor: not-allowed;
  border-color: #f1f2f3;
}

.page-btn.disabled:hover {
  border-color: #f1f2f3;
  color: #c9ccd0;
}

.page-ellipsis {
  color: #9499a0;
  font-size: 13px;
  padding: 0 4px;
}

.page-info {
  margin-left: 12px;
  font-size: 13px;
  color: #9499a0;
}

/* ===== 公司介绍 ===== */
.company-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-top: 28px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f2f3;
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7299, #ff9eb5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}

.company-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.company-slogan {
  font-size: 13px;
  color: #9499a0;
}

.company-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.company-desc h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #18191c;
}

.company-desc p {
  font-size: 13px;
  color: #61666d;
  line-height: 1.8;
  margin-bottom: 12px;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.stat-card {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fb7299;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #9499a0;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.company-tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  background: #fff0f3;
  color: #fb7299;
}

/* ===== 每日推荐 ===== */
.daily-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  margin-top: 28px;
}

.daily-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.daily-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #fb7299;
  font-weight: 600;
  margin-bottom: 8px;
}

.daily-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #18191c;
}

.daily-desc {
  font-size: 13px;
  color: #61666d;
  line-height: 1.7;
  margin-bottom: 14px;
}

.daily-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.daily-tag {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: #f7f8fa;
  color: #61666d;
}

.daily-actions {
  display: flex;
  gap: 10px;
}

.btn-watch {
  padding: 8px 24px;
  border-radius: 6px;
  background: #fb7299;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-watch:hover {
  background: #fc8bab;
}

.btn-fav {
  padding: 8px 20px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #61666d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e3e5e7;
  transition: all 0.2s;
}

.btn-fav:hover {
  border-color: #fb7299;
  color: #fb7299;
}

/* ===== 协议制度区（适配侧边栏布局） ===== */
.docs-section {
  margin-top: 28px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.docs-menu {
  background: #f7f8fa;
  padding: 16px 0;
  border-right: 1px solid #f1f2f3;
}

.docs-menu h4 {
  padding: 0 20px 12px;
  font-size: 14px;
  color: #9499a0;
  font-weight: 600;
  border-bottom: 1px solid #f1f2f3;
  margin-bottom: 8px;
}

.doc-item {
  padding: 10px 20px;
  font-size: 13px;
  color: #61666d;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.doc-item:hover {
  color: #fb7299;
  background: #fff;
}

.doc-item.active {
  background: #fff;
  color: #fb7299;
  border-left-color: #fb7299;
  font-weight: 600;
}

.docs-content {
  padding: 28px 32px;
  min-height: 320px;
}

.doc-panel {
  display: none;
}

.doc-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.doc-title {
  font-size: 18px;
  font-weight: 600;
  color: #18191c;
  margin-bottom: 14px;
}

.doc-body p {
  font-size: 13px;
  color: #61666d;
  line-height: 1.8;
  margin-bottom: 10px;
}

.doc-body {
  font-size: 13px;
  color: #61666d;
  line-height: 1.8;
}

.doc-body p,
.doc-body div,
.doc-body span {
  font-size: 13px;
  color: #61666d;
  line-height: 1.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 页脚 ===== */
.footer {
  background: #fff;
  border-top: 1px solid #e3e5e7;
  margin-top: 40px;
  padding: 32px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 12px;
  color: #9499a0;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #18191c;
}

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

.footer-col a {
  font-size: 12px;
  color: #9499a0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fb7299;
}

.footer-agreement {
  border-top: 1px solid #f1f2f3;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-agreement a {
  font-size: 12px;
  color: #9499a0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-agreement a:hover {
  color: #fb7299;
}

.footer-agreement .divider {
  color: #e3e5e7;
}

.footer-bottom {
  border-top: 1px solid #f1f2f3;
  padding: 14px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #747474;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #6d7075;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fb7299;
}

/* ===== 文章/列表页适配 ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.article-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-top: 20px;
}

.article-box h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #18191c;
}

.article-box .arc-body {
  font-size: 14px;
  line-height: 1.9;
  color: #4e5969;
}
.article-box .arc-body img{
  width: 800px !important;
  height: auto;
}


.article-box .arc-body p {
  margin-bottom: 12px;
}

.crumbs {
  font-size: 12px;
  color: #9499a0;
  margin-bottom: 16px;
}

.crumbs a {
  color: #9499a0;
}

.crumbs a:hover {
  color: #fb7299;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .anime-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .banner-section {
    grid-template-columns: 1fr;
  }

  .side-rank {
    display: none;
  }

  .company-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .daily-card {
    grid-template-columns: 1fr;
  }

  .daily-cover {
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}