/* 仅覆盖手机浏览器体验，桌面端继续使用原有样式。 */
.tone-mobile-controls {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    min-width: 320px;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .container {
    width: auto;
    margin-right: max(16px, env(safe-area-inset-right));
    margin-left: max(16px, env(safe-area-inset-left));
  }

  h1,
  h2,
  h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  h2,
  .scene-copy h2,
  .market-head h2,
  .download-section h2 {
    font-size: clamp(1.9rem, 9.5vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .lead,
  .section-head p,
  .scene-copy p,
  .market-head p,
  .download-section p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-inner {
    min-height: 64px;
    padding: 8px 0;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    gap: 9px;
    font-size: 0.98rem;
  }

  .brand img {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .brand span {
    max-width: 5em;
  }

  .header-cta {
    min-height: 44px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-toggle {
    order: 3;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .nav-links {
    inset: calc(64px + env(safe-area-inset-top)) 0 auto;
    width: 100%;
    max-height: 0;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
    overscroll-behavior: contain;
  }

  body.nav-open .nav-links {
    max-height: calc(100dvh - 64px - env(safe-area-inset-top));
    padding-top: 12px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .nav-links a {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .hero {
    min-height: 0;
    padding-top: clamp(30px, 8vw, 44px);
    padding-bottom: 58px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy {
    min-width: 0;
  }

  .kicker {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .lead {
    max-width: 34em;
    margin-top: 18px;
  }

  .platform-panel {
    gap: 8px;
  }

  .platform-option {
    min-width: 0;
    min-height: 60px;
    padding: 10px 12px;
  }

  .platform-option span,
  .platform-option b {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .download-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stage {
    min-height: 430px;
    padding-inline: 0;
    overflow: hidden;
  }

  .phone-frame.hero-phone {
    width: min(252px, 72vw);
    border-radius: 30px;
  }

  .phone-frame.hero-phone .phone-screen {
    border-radius: 23px;
  }

  .hero-rings,
  .hero-aura {
    right: -46%;
    width: 146vw;
    height: 146vw;
    opacity: 0.28;
  }

  .floating-chip {
    max-width: 128px;
    padding: 8px 10px;
    transform: none;
    animation: none;
    font-size: 0.74rem;
    white-space: normal;
    text-align: center;
  }

  .floating-chip.chip-1 {
    right: 0;
  }

  .floating-chip.chip-2 {
    right: 2px;
  }

  .floating-chip.chip-3 {
    left: 0;
  }

  .feature-section,
  .scene-section,
  .tone-section,
  .download-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-head,
  .scene-copy,
  .market-head {
    margin-bottom: 30px;
  }

  .feature-grid {
    gap: 18px;
  }

  .feature-card {
    padding: 10px;
    border-radius: 16px;
  }

  .feature-card p {
    min-height: 0;
  }

  .scene-lab {
    gap: 24px;
  }

  .scene-side-panel {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .scene-cards {
    gap: 14px;
  }

  .scene-card.real,
  .scene-card.real.wide {
    min-height: 220px;
  }

  .scene-hover-label {
    opacity: 1;
    transform: none;
  }

  .voice-prize-stage {
    min-height: 398px;
    padding: 10px 0;
    overflow: hidden;
  }

  .tone-coverflow {
    height: 354px;
  }

  .coverflow-card {
    top: 6px;
    width: min(218px, 62vw);
    height: 338px;
    margin-left: max(-109px, -31vw);
  }

  .coverflow-card[data-position="-1"] {
    transform: translateX(-126px) scale(0.8) rotateY(13deg);
  }

  .coverflow-card[data-position="1"] {
    transform: translateX(126px) scale(0.8) rotateY(-13deg);
  }

  .tone-mobile-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .tone-mobile-controls button {
    min-height: 48px;
    border: 1px solid rgba(32, 247, 230, 0.32);
    border-radius: 9px;
    color: var(--cyan);
    background: rgba(32, 247, 230, 0.06);
    font-weight: 900;
  }

  .tone-mobile-controls button:active {
    background: rgba(32, 247, 230, 0.15);
  }

  .app-download {
    gap: 36px;
  }

  .download-actions,
  .download-actions .hero-actions {
    width: 100%;
  }

  .download-qr {
    display: none;
  }

  .download-phone {
    width: min(252px, 72vw);
    margin-inline: auto;
  }

  .footer-main {
    gap: 34px;
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .footer-columns {
    gap: 26px 18px;
  }

  .footer-columns a,
  .footer-contact-link {
    min-height: 44px;
  }

  .footer-bottom {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .contact-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .contact-fab,
  .contact-dialog-close,
  .contact-join,
  .contact-qq-group button {
    min-height: 44px;
  }

  .contact-dialog,
  .wechat-preview-dialog {
    width: calc(100vw - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right)));
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
    padding: 28px 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .contact-dialog-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 4em;
  }

  .header-cta {
    padding-inline: 10px;
    font-size: 0.74rem;
  }

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

@media (max-width: 350px) {
  .container {
    margin-right: max(12px, env(safe-area-inset-right));
    margin-left: max(12px, env(safe-area-inset-left));
  }

  .brand span {
    display: none;
  }

  .header-cta {
    font-size: 0.7rem;
  }

  .platform-panel {
    grid-template-columns: 1fr;
  }

  .floating-chip.chip-3 {
    display: none;
  }
}

@media (max-width: 960px) and (orientation: landscape) and (max-height: 600px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    align-items: center;
  }

  .hero-stage {
    min-height: 410px;
  }

  .phone-frame.hero-phone {
    width: min(230px, 28vw);
  }

  .tone-mobile-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .tone-mobile-controls button {
    min-height: 44px;
    border: 1px solid rgba(32, 247, 230, 0.32);
    border-radius: 9px;
    color: var(--cyan);
    background: rgba(32, 247, 230, 0.06);
    font-weight: 900;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-links a,
  .btn,
  .platform-option,
  .coverflow-card-meta button,
  .footer-columns a,
  .footer-contact-link {
    min-height: 44px;
  }

  .feature-card:hover,
  .scene-card.real:hover,
  .coverflow-card:hover {
    transform: none;
  }
}
