/* 基础样式 */
:root {
  --primary-color: #e62117;
  --secondary-color: #1a73e8;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f5f5f5;
  --border-color: #ddd;
  --white: #fff;
  --black: #000;
  --hover-color: #f8f8f8;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h2.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

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

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c5110a;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #0d47a1;
  transform: translateY(-2px);
}

.btn-register {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 0;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-register:hover {
  background-color: #c5110a;
}

.btn-remind {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-remind:hover {
  background-color: #0d47a1;
}

.highlight {
  color: var(--primary-color);
}

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

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

header#navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

header#navbar nav ul {
  display: flex;
}

header#navbar nav ul li {
  margin-left: 30px;
}

header#navbar nav ul li a {
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

header#navbar nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

header#navbar nav ul li a:hover::after,
header#navbar nav ul li a.active::after {
  width: 100%;
}

header#navbar nav ul li a:hover,
header#navbar nav ul li a.active {
  color: var(--primary-color);
}

header#navbar .search-box {
  display: flex;
  align-items: center;
}

header#navbar .search-box input {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  width: 200px;
}

header#navbar .search-box button {
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

header#navbar .search-box button:hover {
  background-color: #c5110a;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.baidu.com/1920/1080?random=1') center/cover no-repeat;
  height: 500px;
  display: flex;
  align-items: center;
  color: var(--white);
}

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

.hero .hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero .hero-buttons a {
  margin-right: 20px;
}

/* 直播分类 */
.categories {
  padding: 80px 0;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.category-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-card .category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--white);
}

.category-card .category-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

/* 热门直播 */
.popular-streams {
  padding: 80px 0;
  background-color: var(--white);
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stream-card {
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.stream-card .stream-thumbnail {
  position: relative;
}

.stream-card .stream-thumbnail img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.stream-card .stream-thumbnail .stream-viewers {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 14px;
}

.stream-card .stream-thumbnail .stream-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 14px;
}

.stream-card .stream-info {
  padding: 15px;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.stream-card .stream-info .stream-avatar {
  margin-right: 15px;
}

.stream-card .stream-info .stream-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stream-card .stream-info .stream-details {
  flex-grow: 1;
}

.stream-card .stream-info .stream-details .stream-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-card .stream-info .stream-details .stream-host {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.stream-card .stream-info .stream-details .stream-category span {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.popular-streams .load-more {
  text-align: center;
  margin-top: 50px;
}

.popular-streams .load-more button {
  background-color: var(--white);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-streams .load-more button:hover {
  background-color: var(--hover-color);
}

/* 直播预告 */
.schedule {
  padding: 80px 0;
}

.schedule-table {
  display: flex;
  flex-direction: column;
}

.schedule-item {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.schedule-item .schedule-time {
  width: 120px;
  text-align: center;
  margin-right: 20px;
}

.schedule-item .schedule-time .time {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}

.schedule-item .schedule-time .date {
  font-size: 14px;
  color: var(--light-text);
}

.schedule-item .schedule-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.schedule-item .schedule-content .schedule-thumbnail {
  margin-right: 20px;
}

.schedule-item .schedule-content .schedule-thumbnail img {
  width: 200px;
  height: 112px;
  border-radius: 5px;
  object-fit: cover;
}

.schedule-item .schedule-content .schedule-details .schedule-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.schedule-item .schedule-content .schedule-details .schedule-host {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.schedule-item .schedule-content .schedule-details .schedule-category span {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.schedule-item .schedule-action {
  margin-left: 20px;
}

/* 注册区域 */
.register {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://www.baidu.com/1920/1080?random=2') center/cover no-repeat;
  color: var(--white);
}

.register .register-content {
  display: flex;
  align-items: center;
}

.register .register-content .register-info {
  flex: 1;
  padding-right: 50px;
}

.register .register-content .register-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.register .register-content .register-info p {
  font-size: 16px;
  margin-bottom: 20px;
}

.register .register-content .register-info ul {
  margin-bottom: 30px;
}

.register .register-content .register-info ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.register .register-content .register-info ul li::before {
  content: '•';
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 20px;
}

.register .register-content .register-form {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 10px;
}

.register .register-content .register-form h3 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

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

.register .register-content .register-form .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--white);
  font-size: 16px;
}

.register .register-content .register-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.register .register-content .register-form .form-group.checkbox {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.register .register-content .register-form .form-group.checkbox input {
  margin-right: 10px;
}

.register .register-content .register-form .form-group.checkbox a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 关于我们 */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

.about .about-content {
  display: flex;
  gap: 50px;
}

.about .about-content .about-info {
  flex: 2;
}

.about .about-content .about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about .about-content .about-stats .stat-item {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about .about-content .about-stats .stat-item .stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.about .about-content .about-stats .stat-item .stat-text {
  font-size: 16px;
  color: var(--text-color);
}

/* 页脚 */
footer.footer {
  background-color: #222;
  color: var(--white);
  padding: 60px 0;
}

footer.footer .footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

footer.footer .footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

footer.footer .footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

footer.footer .footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

footer.footer .footer-col ul li a:hover {
  color: var(--primary-color);
}

footer.footer .footer-col .social-links {
  display: flex;
  margin-bottom: 20px;
}

footer.footer .footer-col .social-links .social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

footer.footer .footer-col .social-links .social-icon:hover {
  background-color: var(--primary-color);
}

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

footer.footer .footer-col .download-app .qr-code img {
  width: 120px;
  height: 120px;
  border-radius: 5px;
}

footer.footer .footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.footer .footer-bottom p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* 返回顶部按钮 */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

#back-to-top:hover {
  background-color: #c5110a;
  transform: translateY(-2px);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* 响应式布局 */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stream-grid {
    grid-template-columns: 1fr;
  }
  
  .register .register-content {
    flex-direction: column;
  }
  
  .register .register-content .register-info {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  footer.footer .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header#navbar .container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }
  
  header#navbar .logo {
    margin-bottom: 15px;
  }
  
  header#navbar nav ul {
    margin-bottom: 15px;
  }
  
  header#navbar nav ul li {
    margin: 0 15px;
  }
  
  .hero .hero-content h1 {
    font-size: 36px;
  }
  
  .hero .hero-content p {
    font-size: 16px;
  }
  
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .schedule-item .schedule-time {
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
  }
  
  .schedule-item .schedule-time .time {
    margin-right: 15px;
  }
  
  .schedule-item .schedule-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .schedule-item .schedule-content .schedule-thumbnail {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .schedule-item .schedule-action {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .about .about-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  footer.footer .footer-top {
    grid-template-columns: 1fr;
  }
  
  .hero .hero-content h1 {
    font-size: 28px;
  }
  
  .hero .hero-content .hero-buttons a {
    margin-right: 0;
    margin-bottom: 15px;
    display: block;
    text-align: center;
  }
  
  .register .register-content .register-form {
    padding: 20px;
  }
}
  