:root {
  --primary-color: #ff4757;
  --secondary-color: #2d3436;
  --accent-color: #ffa502;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

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

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b81 100%);
  color: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: var(--white);
}

.logo span {
  color: var(--accent-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 15px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 5px 10px;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.banner {
  background: linear-gradient(rgba(45, 52, 54, 0.85), rgba(45, 52, 54, 0.85)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=video%20content%20creation%20studio%20with%20professional%20equipment&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
}

.banner h1 {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: bold;
}

.banner p {
  font-size: 22px;
  margin-bottom: 35px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background: transparent;
  border-color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.content-section {
  padding: 60px 0;
  background: var(--white);
}

.content-section.gray {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
  color: var(--secondary-color);
  position: relative;
}

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

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

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.video-card .thumbnail .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--white);
  font-size: 13px;
}

.video-card .thumbnail .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 71, 87, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.video-card .thumbnail .play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

.video-card .video-info {
  padding: 18px;
}

.video-card .video-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card .video-info .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 13px;
}

.video-card .video-info .meta .views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-tag {
  padding: 10px 25px;
  background: var(--light-gray);
  border-radius: 25px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b81 100%);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .number {
  font-size: 42px;
  font-weight: bold;
}

.stat-item .label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
}

.featured-section {
  background: var(--secondary-color);
  color: var(--white);
  padding: 80px 0;
}

.featured-section .section-title {
  color: var(--white);
}

.featured-section .section-title::after {
  background: var(--accent-color);
}

.featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.featured-content .featured-video {
  flex: 1;
}

.featured-content .featured-video img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-content .featured-info {
  flex: 1;
}

.featured-content .featured-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.featured-content .featured-info p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 30px;
}

footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 50px 0;
}

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

footer .footer-content h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

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

footer .footer-content ul li {
  margin-bottom: 12px;
}

footer .footer-content ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-content ul li a:hover {
  color: var(--white);
}

footer .copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 45px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  height: 160px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #e63950;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #666;
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
  }
  
  .banner h1 {
    font-size: 32px;
  }
  
  .banner p {
    font-size: 18px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .featured-content {
    flex-direction: column;
  }
}