/* 视频播放界面样式 */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  color: #333;
}

.welcome {
  text-align: center;
  font-size: 2rem;
  margin-top: 2rem;
  transition: opacity 0.5s ease;
  color: #d32f2f;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #d32f2f;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.video-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.video-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #4CAF50;
}

.video-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.video-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.video-details span {
  margin-right: 0.5rem;
}

.video-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.video-button:hover {
  background: #45a049;
}

/* 视频分类样式 */
.category-section {
  margin-top: 2rem;
  text-align: center;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-buttons button {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.category-buttons button:hover {
  background: #a83233;
}

.category-buttons button.selected {
  background: #4CAF50;
}

/* 搜索框样式 */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.search-bar input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 300px;
  font-size: 1rem;
}

.search-bar button {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #45a049;
}

/* 上传视频样式 */
.upload-section {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-section input[type="file"] {
  display: none;
}

.upload-section label {
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-section label:hover {
  background: #45a049;
}

.upload-details {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* 底部样式 */
.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

#beian {
  color: #666;
  text-decoration: none;
}