/* ============================================================
   responsive.css — Dalog 响应式覆盖
   断点:xs <576 | sm ≥576 | md ≥768 | lg ≥1024 | xl ≥1280
   桌面样式写在 main.css,这里覆盖 xs/sm/md
   ============================================================ */

/* ----------------------------------------------------------
    平板 (≥768px ~ <1024px)
    ---------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone {
    width: 220px;
  }

  .selling-points__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-4);
    text-align: center;
  }

  .feature-block__text {
    max-width: none;
  }

  .feature-block__list {
    align-items: center;
  }

  .feature-block__visual img {
    max-width: 300px;
  }

  .download__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download__actions {
    justify-content: center;
  }

  .download__meta {
    justify-content: center;
  }

  .download__qr {
    flex-direction: row;
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------------------------
    手机 (<768px)
    ---------------------------------------------------------- */
@media (max-width: 767.98px) {
  :root {
    --section-pad-desktop: var(--section-pad-mobile);
  }

  /* 导航:汉堡菜单 */
  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--container-pad-mobile);
    gap: 0;
    border-bottom: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--duration-base) var(--ease-out),
                opacity var(--duration-base) var(--ease-out),
                visibility var(--duration-base) var(--ease-out);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 14px 0;
    font-size: var(--font-size-body);
    border-bottom: 1px solid var(--color-border-soft);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
  }

  .nav__cta {
    margin-top: var(--space-2);
    justify-content: center;
    padding: 12px 20px;
  }

  .nav__burger {
    display: flex;
  }

  .nav__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
  .hero {
    padding-top: var(--space-5);
  }

  .hero__title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
  }

  .hero__phone {
    width: 200px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
  }

  /* 卖点:单列 */
  .selling-points__grid {
    grid-template-columns: 1fr;
  }

  /* 功能详解 */
  .feature-block__visual img {
    max-width: 240px;
  }

  /* 轮播 */
  .carousel__slide {
    width: 180px;
  }

  /* 下载区 */
  .download__qr {
    flex-direction: column;
  }

  .qr-card__img {
    width: 140px;
    height: 140px;
  }

  .download__meta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
  }

  /* 页脚 */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
  }

  /* 浮动下载按钮 */
  .fab-download {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }
}

/* ----------------------------------------------------------
    大屏 (≥1280px)
    ---------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero__phone {
    width: 320px;
  }

  .carousel__slide {
    width: 240px;
  }
}