/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.btn-primary {
  display: inline-block;
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #e65c00;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: #ff6600;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* 导航栏 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff6600;
}

.nav-list {
  display: flex;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  color: #333;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ff6600;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
}

.search-box input {
  border: none;
  outline: none;
  width: 200px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/1920/1080?random=10') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
}

/* 视频分类 */
.categories {
  padding: 60px 0;
}

.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 36px;
  color: #ff6600;
  margin-bottom: 10px;
}

.category-name {
  font-weight: bold;
}

/* 视频区域 */
.videos {
  padding: 60px 0;
}

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

.section-controls {
  display: flex;
  gap: 20px;
}

.video-filter select, .video-sort select {
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  outline: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 102, 0, 0.8);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

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

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.video-category {
  color: #ff6600;
}

.video-description {
  font-size: 14px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.page-btn {
  display: inline-block;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 35px;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.page-btn:hover, .page-btn.active {
  background-color: #ff6600;
  color: #fff;
}

.prev, .next {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* 关于我们 */
.about {
  padding: 60px 0;
  background-color: #fff;
}

.about-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-text {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff6600;
  color: #fff;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #e65c00;
}

/* 订阅区域 */
.subscribe {
  padding: 60px 0;
  background-color: #ff6600;
  color: #fff;
}

.subscribe-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subscribe-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  width: 300px;
  outline: none;
}

.subscribe-form button {
  background-color: #333;
  color: #fff;
}

.subscribe-form button:hover {
  background-color: #222;
}

/* 联系我们 */
.contact {
  padding: 60px 0;
}

.contact-wrapper {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ff6600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.contact-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form {
  flex: 1;
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #ff6600;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-text {
  margin-bottom: 20px;
}

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

.footer-links a {
  color: #fff;
  transition: color 0.3s ease;
}

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

.footer-contacts li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contacts i {
  margin-right: 10px;
  color: #ff6600;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #fff;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ff6600;
}

/* 视频播放模态框 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 1200px;
  height: 80%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.video-container {
  width: 100%;
  height: 100%;
}

/* 响应式布局 */
@media (max-width: 992px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }
  
  .nav-list {
    flex-direction: column;
  }
  
  .nav-item {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .search-box {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .about-wrapper {
    flex-direction: column;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .subscribe-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .subscribe-form {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .subscribe-form {
    flex-direction: column;
    width: 100%;
  }
  
  .subscribe-form input {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    margin-top: 10px;
  }
}
    