/* Verbatim from Vue AppHeader / AppFooter / SectionTimelineNav */

/* from src/components/layout/AppHeader.vue */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  height: 36px;
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  position: relative;
}
.nav__item:hover .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__link {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 20px;
  font-size: 15px;
  color: #000;
  position: relative;
}
.nav__link:hover, .nav__link.active {
  color: var(--accent);
}
.nav__link.active .nav__label::after, .nav__link:hover .nav__label::after {
  transform: scaleX(1);
}

.nav__label {
  position: relative;
  display: inline-block;
}
.nav__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav__drop {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 220px;
  padding: 14px 0;
  background: #fff;
  box-shadow: inset 0 2px 10px rgba(150, 150, 150, 0.1), 0 12px 30px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
  display: grid;
}
.nav__drop a {
  display: block;
  padding: 10px 20px 10px 35px;
  color: var(--navy-3);
  font-size: 14px;
  line-height: 30px;
  position: relative;
  white-space: nowrap;
}
.nav__drop a::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__drop a:hover {
  color: var(--accent);
  background: rgba(15, 52, 91, 0.04);
}

.header__cta {
  margin-left: 16px;
  text-transform: uppercase;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--navy);
}

@media (max-width: 960px) {
  .logo {
    height: 28px;
  }
  .logo__img {
    height: 28px;
  }
  .menu-btn {
    display: flex;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 4px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow: auto;
  }
  .nav--open {
    transform: translateX(0);
  }
  .nav__link {
    height: 48px;
  }
  .nav__drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 8px;
  }
  .header__cta {
    margin: 16px 0 0;
    align-self: flex-start;
  }
}

/* from src/components/layout/AppFooter.vue */
.footer {
  margin-top: 0;
  border-top: 2px solid var(--accent);
  background: #fff;
  padding: 50px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer__logo {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
}

.footer__slogan {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer__desc,
.footer__col p,
.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 30px;
}

.footer__col h4 {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-footer);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 300;
  line-height: 26px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__bottom {
    display: block;
    text-align: center;
  }
}

/* 首页右侧章节导航：timeline-from-vue.css；产品页横向吸顶导航：timeline-nav.css */

