/* ========== 全局设置 ========== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ========== 顶部导航栏 ========== */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 33px;
  padding: 0;
  background-color: transparent;
}

.logo {
  height: 38px;
  width: 178px;
  margin-left: 12px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 18px;
}

.main-nav ul li:not(:first-child) {
  margin-left: 45px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding: 8px 1px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #ff6200;
  border-bottom: 2px solid #ff6200;
  font-weight: bold;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;   /* ✅ 正确 */
  margin-right: 20px;  /* ✅ 正确 */
}

.search-btn {
  background: none;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #ff6200;
}

.nav-btn {
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.email-btn {
  background-color: transparent;
  color: #ff6200;
  border: 1.5px solid #ff6200;
}

.email-btn:hover {
  background-color: rgba(255, 98, 0, 0.1);
  box-shadow: 0 0 6px rgba(255, 98, 0, 0.2);
}

.contact-btn {
  background-color: #ff6200;
  color: #fff;
  border: none;
}

.contact-btn:hover {
  background-color: #ea5a00;
  box-shadow: 0 0 8px rgba(255, 98, 0, 0.3);
}

/* ========== 移动菜单 ========== */
.hamburger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

/* ========== Hero Section ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ff6200; /* 标题颜色改为主题色 */
}

.subtitle {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  color: #333;
}

.cta-button {
  background-color: #ff6200;; /* 按钮背景改为主题色 */
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.cta-button:hover {
  background-color: #ea5a00; /* hover 状态为更深的橙色 */
}

/* ========== Video Section ========== */
.video-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* 广告区块整体布局 */
.promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
  font-family: sans-serif;
}

/* 视频区域 */
.promo-video {
  flex: 1;
  max-width: 400px;
}

.promo-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
}

/* 文本区域 */
.promo-content {
  flex: 1;
}

.promo-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #ff6200;
}

.promo-content p {
  font-size: 16px;
  color: #555;
}

.promo-content a {
  display: inline-block;
  margin-top: 12px;
  font-size: 16px;
  color: #ff6200;
  text-decoration: underline;
  transition: text-decoration 0.3s ease;
}

.promo-link:hover {
  font-size: 17.5px;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #f8f8f8;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  color: #555;
}

.footer-links {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #0000009f;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Phone */

@media (max-width: 768px) {
  .main-nav,
  .nav-right {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .hamburger-btn {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6200;
  }

.mobile-menu {
  width: 100%;
  max-width: 100%; /* 控制最大宽度 */
  margin: 0 auto;    /* 居中显示 */
  border-radius: 8px;
  list-style: none;
  padding: 0 20px; /* 左右都有边距 */
}

.mobile-menu.visible {
  display: flex;
  flex-direction: column;
}

  .mobile-menu li {
    margin-bottom: 12px;
  }

  .mobile-menu a,
  .mobile-menu .nav-btn {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    width: 100%;
    text-align: left;
  }

.mobile-menu .nav-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
}


.mobile-menu .email-btn {
  background-color: transparent;
  color: #ff6200;
  border: 1.5px solid #ff6200;
}

.mobile-menu .email-btn:hover {
  background-color: rgba(255, 98, 0, 0.08);
}

.mobile-menu .contact-btn {
  background-color: #ff6200;
  color: #fff;
  border: none;
}

.mobile-menu .contact-btn:hover {
  background-color: #ea5a00;
}
}

/* Ipad */

@media (min-width: 1024px) and (max-width: 1366px) {
  .main-nav,
  .nav-right {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .hamburger-btn {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6200;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    list-style: none;
    padding: 0 20px;
  }

  .mobile-menu.visible {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu li {
    margin-bottom: 12px;
  }

  .mobile-menu a,
  .mobile-menu .nav-btn {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    width: 100%;
    text-align: left;
  }

  .mobile-menu .nav-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 12px;
    box-sizing: border-box;
  }

  .mobile-menu .email-btn {
    background-color: transparent;
    color: #ff6200;
    border: 1.5px solid #ff6200;
  }

  .mobile-menu .email-btn:hover {
    background-color: rgba(255, 98, 0, 0.08);
  }

  .mobile-menu .contact-btn {
    background-color: #ff6200;
    color: #fff;
    border: none;
  }

  .mobile-menu .contact-btn:hover {
    background-color: #ea5a00;
  }
}

@media (max-width: 1440px) {
  .main-nav,
  .nav-right {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .hamburger-btn {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6200;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    list-style: none;
    padding: 0 20px;
  }

  .mobile-menu.visible {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu li {
    margin-bottom: 12px;
  }

  .mobile-menu a,
  .mobile-menu .nav-btn {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    width: 100%;
    text-align: left;
  }

  .mobile-menu .nav-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 12px;
    box-sizing: border-box;
  }

  .mobile-menu .email-btn {
    background-color: transparent;
    color: #ff6200;
    border: 1.5px solid #ff6200;
  }

  .mobile-menu .email-btn:hover {
    background-color: rgba(255, 98, 0, 0.08);
  }

  .mobile-menu .contact-btn {
    background-color: #ff6200;
    color: #fff;
    border: none;
  }

  .mobile-menu .contact-btn:hover {
    background-color: #ea5a00;
  }
}