/* 顶栏 / 页脚 / 侧栏 — 对齐 fayuan-home：Logo + 菜单靠左，右侧 CTA */
:root {
  --brand: #1890ff;
  --nav-h: 80px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  width: calc(100% - 64px);
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 48px;
}

.site-nav > a,
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 0;
  margin-right: 40px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  color: #333;
  font-size: 16px;
  box-sizing: border-box;
}

.site-nav > a.is-active,
.nav-dropdown > a.is-active {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.site-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f5f8ff;
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-actions .btn-trial {
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 18px;
  line-height: 1.4;
}

.header-actions .header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  padding: 0;
  white-space: nowrap;
}

.header-actions .header-phone .fa {
  font-size: 18px;
}

.site-footer {
  background: #0f1b33;
  color: #d0d5dd;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 0 32px;
  flex-wrap: wrap;
}

.footer-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-item-title img {
  width: 18px;
  height: 18px;
}

.footer-wx {
  text-align: center;
}

.footer-wx img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 28px;
  text-align: center;
  font-size: 13px;
  color: #98a2b3;
}

.footer-bottom a {
  color: #98a2b3;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.side-fixed {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.side-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 91, 234, 0.35);
}

.side-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
  cursor: pointer;
}

.side-panel {
  display: none;
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 200px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15);
}

.side-panel.is-show {
  display: block;
}

.side-panel img {
  width: 100%;
  border-radius: 6px;
}

.side-panel-wrap {
  position: relative;
}

@media (max-width: 1100px) {
  .site-nav > a,
  .nav-dropdown > a {
    margin-right: 24px;
    font-size: 15px;
  }

  .header-actions .header-phone span {
    display: none;
  }
}

@media (max-width: 992px) {
  .site-header-inner {
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    padding: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown > a {
    height: auto;
    margin-right: 0;
    padding: 12px 8px;
    border-bottom: none;
  }

  .site-nav > a.is-active,
  .nav-dropdown > a.is-active {
    border-bottom: none;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .header-actions .header-phone,
  .header-actions .link-search {
    display: none;
  }

  .side-phone span {
    display: none;
  }

  .side-phone {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}
