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

body {
  font-family: 'Inter', sans-serif;
  padding-top: 128px;
  transition: padding-top 0.3s ease;
  background: #fff;
  overflow-x: hidden;
}

body.topbar-hidden {
  padding-top: 80px;
}

/* ===== 顶部导航 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* ===== 顶部黄条 ===== */
.top-bar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 48px;
  line-height: 48px;
  background: #fef3c7;
  text-align: center;
  font-size: 14px;
  z-index: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

.top-bar.hide {
  height: 0;
  line-height: 0;
  opacity: 0;
  padding: 0;
}

/* ===== 导航 ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 40px;
  flex: 1;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 80px;
  text-decoration: none;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== 桌面下拉 ===== */
.dropdown-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 40px 60px;
  display: flex;
  gap: 70px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
  z-index: 2000;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-column h4 {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-bottom: 12px;
}

.dropdown-column a {
  display: block;
  margin-bottom: 16px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== 按钮 ===== */
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.actions a,
.mobile-actions a,
#ctaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.actions a {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.login {
  border: 2px solid #000;
  color: #000;
  background: transparent;
}

.login:hover {
  background: #000;
  color: #fff;
}

.cta {
  background: #ff0050;
  color: #fff;
  border: none;
}

.cta:hover {
  background: #e60045;
}

/* 桌面/手机按钮显示控制 */
.desktop-actions {
  display: flex;
}

.mobile-actions {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  height: calc(100vh - 128px);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#title {
  font-size: 72px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#ctaBtn,
#ctaBtn:link,
#ctaBtn:visited,
#ctaBtn:hover,
#ctaBtn:active {
  background: #ff0050;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.3s;
}

#ctaBtn:hover {
  background: #e60045;
  transform: scale(1.05);
}

/* ===== 平板过渡 ===== */
@media (max-width: 1100px) {
  header {
    padding: 0 20px;
  }

  .main-nav {
    gap: 20px;
    margin: 0 20px;
  }

  .nav-item > a {
    font-size: 14px;
  }

  .actions a {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .dropdown-menu {
    padding: 30px 40px;
    gap: 40px;
  }

  #title {
    font-size: 56px;
  }
}

/* ===== 手机适配 ===== */
@media (max-width: 860px) {
  body {
    padding-top: 120px;
  }

  body.topbar-hidden {
    padding-top: 72px;
  }

  header {
    height: 72px;
    padding: 0 16px;
  }

  .top-bar {
    top: 72px;
  }

  .logo img {
    height: 26px;
  }

  /* 显示菜单按钮 */
  .menu-toggle {
    display: block;
  }

  /* 桌面按钮隐藏 */
  .desktop-actions {
    display: none;
  }

  /* 抽屉菜单 */
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(86vw, 340px);
    height: calc(100vh - 72px);
    margin: 0;
    padding: 20px 16px 24px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-item > a {
    display: flex;
    width: 100%;
    height: auto;
    padding: 16px 0;
    font-size: 16px;
    justify-content: space-between;
  }

  /* 手机下拉 */
  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 8px 0 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
  }

  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-dropdown.mobile-open .dropdown-menu {
    display: flex;
  }

  .dropdown-column {
    min-width: 100%;
  }

  .dropdown-column h4 {
    margin: 8px 0 10px;
    font-size: 13px;
  }

  .dropdown-column a {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* 手机按钮 */
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .mobile-actions a {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
  }

  /* Hero 缩小 */
  .hero {
    height: calc(100vh - 120px);
    min-height: 420px;
  }

  #title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  #subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  #ctaBtn,
  #ctaBtn:link,
  #ctaBtn:visited,
  #ctaBtn:hover,
  #ctaBtn:active {
    padding: 12px 22px;
    font-size: 14px;
  }
}