/* Base Styles for larger screens (Desktop) */
body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Background Video */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Area: includes h1, h2, p */
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 120px;     /* 距顶部距离，可按需微调 */
  margin-right: 80px;    /* 右边距，避免贴边 */
  max-width: 400px;      /* 限制文字宽度，防止碰到电视 */
  color: white;
  text-align: right;
  z-index: 10;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.content h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.content p {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
}


/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

/* Navbar Layout */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
  z-index: 20;
}

.navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Navbar Items */
.navbar ul li {
  margin: 0 15px;
}

/* Logo left-aligned */
.nav-logo {
  margin-left: 20px;
  margin-right: auto;
}

/* Logo image style */
.logo-img {
  height: 40px;
  width: auto;
}

/* Navbar Links */
.navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #f39c12;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .content {
    margin-top: 50vh;
    font-size: 1.2rem;
    text-align: right;
  }

  .content h1 {
    font-size: 4rem;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 1rem;
  }

  .navbar ul {
    flex-direction: column;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .nav-logo {
    margin: 10px 0;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .content {
    margin-top: 35vh;
    font-size: 1.5rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }
}
.text-panel {
  position: absolute;
  top: 53%;                /* 距离顶部位置，调整对齐电视 */
  left: 65%;               /* 从屏幕左边开始放置，确保在电视右侧 */
  max-width: 30%;          /* 限制最大宽度，避免太长触碰电视 */
  color: white;
  text-align: right;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-50%);
}

.text-panel h1 {
  font-size: 6rem;
  margin-bottom: 10px;
}

.text-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.text-panel p {
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.5;
}
