/* 媚黑 - 原创网站样式表 */

:root {
  --primary-color: #6B4CE6;
  --secondary-color: #00D4FF;
  --accent-color: #FF1493;
  --dark-bg: #1A1A2E;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #E0E0E0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* 通用样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 导航栏 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.search-box {
  position: relative;
  width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: var(--light-bg);
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663728645129/JsVt5aVMQ3zFugAKaa7uYN/hero_background-nNvTKoak88mfpSNyXGD859.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: #FF0080;
}

/* 卡片样式 */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--light-bg);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 动漫视频卡片 */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark-bg);
  cursor: pointer;
}

.video-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:hover .video-card-image {
  transform: scale(1.1);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 20, 147, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 10;
}

.video-play-btn::after {
  content: '▶';
  color: var(--white);
  font-size: 24px;
  margin-left: 4px;
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-card-info {
  padding: 15px;
  background: var(--white);
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
}

/* 部分标题 */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ 样式 */
.faq-item {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  background: #EEEEEE;
  transform: translateX(5px);
}

.faq-question {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 用户评论 */
.comment-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.comment-card:hover {
  box-shadow: var(--shadow);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light-bg);
}

.comment-user {
  flex: 1;
}

.comment-name {
  font-weight: bold;
  color: var(--text-dark);
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-light);
}

.comment-rating {
  color: #FFB800;
  font-size: 14px;
}

.comment-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.comment-likes {
  font-size: 12px;
  color: var(--text-light);
}

/* 页脚 */
footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

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

.footer-section a {
  color: #CCCCCC;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qrcode-img {
  width: 120px;
  height: 120px;
  background: var(--white);
  padding: 5px;
  border-radius: 8px;
}

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

.footer-bottom p {
  margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }

  .search-box {
    width: 150px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero {
    padding: 60px 15px;
  }

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

  .hero p {
    font-size: 14px;
  }

  .hero-btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .section {
    padding: 40px 15px;
  }

  .nav-menu {
    gap: 10px;
    font-size: 12px;
  }

  .search-box {
    width: 120px;
  }

  .search-box input {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* 加载动画 */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

