/* 空气路亚 — 品牌与布局补充（Bootstrap 之上） */
:root {
  --brand: #3ed54a;
  --brand-hover: #32c03e;
  --brand-soft: rgba(62, 213, 74, 0.12);
  --text: #14221a;
  --text-muted-custom: #4a5c52;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

/* 避免 flex 栅格列被内容（长词、轮播 transform 等）撑出视口右侧白条 */
.row > [class*="col"] {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-item {
    transition: none !important;
  }
}

/* 应用界面轮播：拉长切换动画，避免「划得太快」 */
.carousel-slow.carousel .carousel-item {
  transition: transform 1.05s ease-in-out;
}

/* 轮播切换时子项 transform 可能超出，限制在容器内避免整页横向溢出 */
#screensCarousel.carousel {
  overflow: hidden;
}

body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #fafcf9;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand, .display-brand {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
}

.text-brand {
  color: var(--brand) !important;
}

.bg-brand {
  background-color: var(--brand) !important;
}

.bg-brand-soft {
  background-color: var(--brand-soft);
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-focus-shadow-rgb: 62, 213, 74;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
}

.navbar-air {
  backdrop-filter: blur(10px);
  background: rgba(250, 252, 249, 0.92) !important;
  border-bottom: 1px solid rgba(62, 213, 74, 0.15);
}

/* 移动端：汉堡按钮略小于默认，点击无描边/聚焦环 */
@media (max-width: 991.98px) {
  .navbar-air .navbar-toggler {
    padding: 0.28rem 0.45rem;
    font-size: 0.95rem;
    border: none !important;
    box-shadow: none !important;
    --bs-navbar-toggler-focus-width: 0;
  }

  .navbar-air .navbar-toggler:focus,
  .navbar-air .navbar-toggler:focus-visible,
  .navbar-air .navbar-toggler:active {
    outline: none;
    box-shadow: none !important;
  }

  .navbar-air .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
  }
}

.navbar-air .nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar-air .nav-link:hover,
.navbar-air .nav-link:focus {
  color: var(--brand);
}

.hero-air {
  min-height: 88vh;
  padding-top: 5.5rem;
  background: linear-gradient(165deg, #f0faf1 0%, #fafcf9 45%, #eef7f0 100%);
}

.hero-air .lead {
  color: var(--text-muted-custom);
  max-width: 36rem;
}

/* Banner 右侧海报：放大且保持原始宽高比 */
.hero-poster-wrap {
  max-width: 100%;
}

.hero-poster-frame {
  max-width: min(100%, 280px);
}

@media (min-width: 576px) {
  .hero-poster-frame {
    max-width: min(100%, 360px);
  }
}

@media (min-width: 992px) {
  .hero-poster-frame {
    max-width: min(100%, 440px);
  }
}

.hero-poster-img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.lead{
  margin-bottom: 0!important;
}
.screenshot-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(20, 34, 26, 0.08);
  box-shadow: 0 0.5rem 2rem rgba(20, 34, 26, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  background: #fff;
}

.screenshot-card:hover {
  box-shadow: 0 1rem 2.5rem rgba(62, 213, 74, 0.12);
  transform: translateY(-2px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.placeholder-block {
  border: 1px dashed rgba(62, 213, 74, 0.45);
  border-radius: 0.5rem;
  background: rgba(62, 213, 74, 0.06);
  color: var(--text-muted-custom);
  font-size: 0.9rem;
}

.section-download {
  background: linear-gradient(180deg, #1e2a22 0%, #14221a 100%);
}

.app-store-badge-img {
  max-height: 54px;
  width: auto;
  display: block;
}

.app-badge-link {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-badge-link:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

footer a {
  color: var(--text-muted-custom);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand);
}

.tagline-pill {
  letter-spacing: 0.12em;
}

.text-white-soft {
  color: rgba(255, 255, 255, 0.72) !important;
}

.py-lg-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* 焦点可见性 */
.btn:focus-visible,
.nav-link:focus-visible,
.app-badge-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
