/* 首页样式 */

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 轮播图区域 */
.banner-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.banner-slider {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

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

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 15, 26, 0.95) 0%, rgba(15, 15, 26, 0.7) 50%, transparent 100%);
  display: flex;
  align-items: center;
}

.banner-content {
  max-width: 600px;
  padding: 0 80px;
  animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.banner-content h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-content .subtitle {
  font-size: 20px;
  color: var(--accent-color);
  margin-bottom: 16px;
  font-weight: 600;
}

.banner-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.banner-content .banner-btns {
  display: flex;
  gap: 16px;
}

.banner-content .btn {
  padding: 14px 32px;
  font-size: 15px;
}

.banner-content .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-content .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 80px;
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--accent-color);
  width: 60px;
}

/* 轮播箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.banner-arrow:hover {
  background: var(--accent-color);
}

.banner-arrow svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* 分类区域 */
.category-section {
  padding: 40px 0;
  background: var(--secondary-bg);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.category-card .icon { font-size: 36px; }
.category-card .name { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* 内容区域 */
.section { padding: 60px 0; }
.hot-section { background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg)); }
.latest-section { background: var(--primary-bg); }

/* 动漫网格 */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

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

@media (max-width: 1199px) {
  .container { padding: 0 20px; }
  .banner-section { height: 400px; }
  .banner-content { padding: 0 40px; }
  .banner-content h2 { font-size: 36px; }
  .banner-content .subtitle { font-size: 18px; }
  .banner-dots { left: 40px; }
  .anime-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .anime-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-section { height: 350px; }
  .banner-content h2 { font-size: 28px; }
  .banner-content .subtitle { font-size: 16px; }
  .banner-content p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .banner-section { height: 300px; }
  .banner-overlay { background: linear-gradient(to top, rgba(15, 15, 26, 0.95) 0%, rgba(15, 15, 26, 0.5) 50%, transparent 100%); align-items: flex-end; }
  .banner-content { padding: 0 20px 60px; max-width: 100%; }
  .banner-content h2 { font-size: 24px; }
  .banner-content .subtitle { font-size: 14px; }
  .banner-content p { display: none; }
  .banner-content .btn { padding: 10px 20px; font-size: 13px; }
  .banner-dots { left: 50%; transform: translateX(-50%); bottom: 20px; }
  .banner-arrow { display: none; }
  .section { padding: 40px 0; }
  .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 15px; }
  .category-card .icon { font-size: 28px; }
  .category-card .name { font-size: 13px; }
}

@media (max-width: 480px) {
  .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .anime-card .info { padding: 12px; }
  .anime-card .title { font-size: 13px; }
  .anime-card .meta { font-size: 11px; }
}

/* ========================================
   静态编码页样式
   ======================================== */
.static-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.static-page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}
.static-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.static-page-body {
  line-height: 1.8;
  color: var(--text-secondary);
}
.static-section {
  margin-bottom: 30px;
}
.static-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-color);
}
.static-section p {
  margin-bottom: 12px;
}
.static-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.static-section li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .static-page { padding: 30px 15px 40px; }
  .static-page-header h1 { font-size: 22px; }
  .static-section h2 { font-size: 18px; }
}
