/*
 * Zhemaaa 手机专用布局
 * 仅在屏幕宽度不超过 720px 时加载。
 */

:root {
  --mobile-gutter: 16px;
  --mobile-radius: 18px;
}

body:not(.tutorial-body) {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.container,
.nav-wrap {
  width: calc(100% - (var(--mobile-gutter) * 2));
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
}

.nav-wrap {
  height: 60px;
}

.logo {
  font-size: 19px;
}

.menu-toggle {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.site-nav {
  top: 60px;
  padding: 4px var(--mobile-gutter) 12px;
}

.site-nav a {
  padding: 12px 4px;
}

.hero {
  min-height: 0;
  padding: 92px 0 44px;
  background:
    radial-gradient(circle at 100% 24%, rgba(54, 132, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
}

.hero-layout {
  display: block;
}

.hero-copy {
  max-width: none;
}

.hero .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 430px;
  font-size: clamp(40px, 11.2vw, 48px);
  line-height: 1.04;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 17px;
}

.hero-plan-options {
  width: fit-content;
  margin-top: 18px;
  gap: 6px;
}

.hero-plan-options > span {
  padding: 6px 9px;
  font-size: 10.5px;
}

.hero-plan-options > small {
  width: 100%;
  margin: 1px 0 0;
  font-size: 10.5px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.hero-actions .button {
  min-height: 46px;
  padding: 0 12px;
  font-size: 14px;
}

.hero-note {
  margin-top: 11px;
  font-size: 11px;
}

.hero-product {
  display: none;
}

.mobile-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 105, 224, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(31, 76, 138, 0.07);
}

.mobile-stats span {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 13px 6px 12px;
  background: rgba(255, 255, 255, 0.60);
}

.mobile-stats span + span {
  border-left: 1px solid #e9eef5;
}

.mobile-stats strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.mobile-stats small {
  color: var(--muted);
  font-size: 10px;
}

.section {
  padding: 56px 0;
}

.section-heading,
.section-heading.centered {
  max-width: none;
  margin-bottom: 24px;
  text-align: left;
}

.section-heading .eyebrow,
.contact-copy .eyebrow {
  margin-bottom: 9px;
  font-size: 10px;
}

.section-heading h2,
.contact-copy h2,
.tutorial-hero h1 {
  font-size: clamp(30px, 8.6vw, 36px);
  line-height: 1.12;
}

.section-heading > p:last-child,
.contact-copy > p,
.tutorial-hero > p {
  margin-top: 11px;
  font-size: 14px;
}

.advantage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.advantage-card {
  min-height: 168px;
  padding: 16px;
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(22, 32, 51, 0.05);
}

.feature-symbol {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.advantage-card h3 {
  margin: 20px 0 5px;
  font-size: 16px;
}

.advantage-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pricing-section {
  overflow: hidden;
}

.pricing-section .section-heading {
  margin-bottom: 8px;
}

.mobile-swipe-hint {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.mobile-swipe-hint span {
  color: var(--blue);
  font-size: 17px;
}

.pricing-grid {
  display: flex;
  width: calc(100% + var(--mobile-gutter));
  max-width: none;
  gap: 12px;
  margin: 0;
  padding: 4px var(--mobile-gutter) 15px 0;
  overflow-x: auto;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pricing-grid::-webkit-scrollbar {
  display: none;
}

.price-card {
  min-height: 438px;
  flex: 0 0 min(85vw, 330px);
  padding: 22px;
  border-radius: 21px;
  scroll-snap-align: start;
}

.price-card.featured {
  border-color: rgba(23, 105, 224, 0.52);
  box-shadow: 0 18px 40px rgba(23, 105, 224, 0.11);
  transform: none;
}

.recommend-badge {
  top: 16px;
  right: 16px;
}

.plan-name {
  font-size: 13px;
}

.price {
  margin: 17px 0 10px;
  font-size: 50px;
}

.price > span {
  font-size: 19px;
  vertical-align: 17px;
}

.plan-desc,
.traffic-note,
.plan-list li {
  font-size: 12px;
}

.traffic-note {
  margin-top: 10px;
  padding: 10px 11px;
}

.plan-list {
  gap: 9px;
  margin: 20px 0;
}

.price-card .button {
  min-height: 45px;
  font-size: 13px;
}

.pricing-referral-card {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 5px;
  padding: 16px;
  border-radius: 18px;
}

.referral-compact-copy > span {
  font-size: 10px;
}

.referral-compact-copy > strong {
  font-size: 15px;
  line-height: 1.4;
}

.referral-compact-copy > small {
  font-size: 10.5px;
  line-height: 1.5;
}

.referral-compact-rewards {
  width: 100%;
  border-radius: 13px;
}

.referral-compact-rewards > span {
  min-width: 0;
  flex: 1 1 0;
  padding: 9px 4px;
}

.referral-compact-rewards small {
  font-size: 8.5px;
}

.referral-compact-rewards strong {
  font-size: 15px;
}

.pricing-referral-card .button {
  width: 100%;
  min-height: 43px;
  font-size: 12px;
}

.pricing-referral-card > p {
  margin-top: -3px;
  font-size: 9px;
  line-height: 1.5;
}

.process-grid {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
}

.process-item {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.process-item:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: -8px;
  left: 18px;
  width: 1px;
  background: #d7e2f1;
  content: "";
}

.process-item > span {
  z-index: 1;
  display: grid;
  width: 37px;
  height: 37px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 10px;
}

.process-item h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.process-item p {
  font-size: 12px;
}

.after-sales-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 17px;
}

.after-sales-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 11px;
}

.after-sales-card strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.after-sales-card p {
  font-size: 11px;
  line-height: 1.55;
}

.after-sales-card .button {
  width: 100%;
  min-height: 42px;
  grid-column: 1 / -1;
  font-size: 12px;
}

.tutorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tutorial-card {
  min-height: 166px;
  padding: 15px;
  border-radius: 17px;
}

.device-name {
  top: 15px;
  left: 15px;
  font-size: 10px;
}

.tutorial-card strong {
  font-size: 16px;
}

.tutorial-card small {
  display: -webkit-box;
  min-height: 32px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 10.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tutorial-card i {
  margin-top: 12px;
  font-size: 11px;
}

.contact-section {
  padding: 32px 0 22px;
}

.contact-card {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 18px;
  border-radius: 21px;
}

.contact-points {
  gap: 6px;
  margin-top: 15px;
}

.contact-points span {
  padding: 5px 8px;
  font-size: 10px;
}

.qr-wrap {
  display: grid;
  width: 100%;
  grid-template-columns: 116px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 15px;
  justify-items: start;
  padding: 12px;
  border-radius: 17px;
  text-align: left;
}

.qr-wrap img {
  width: 116px;
  grid-row: 1 / 3;
  border-radius: 12px;
}

.qr-wrap strong {
  align-self: end;
  margin: 0 0 2px;
  font-size: 14px;
}

.qr-wrap small {
  align-self: start;
  margin: 0;
  font-size: 10px;
}

.site-footer {
  padding: 40px 0 26px;
}

.footer-inner {
  grid-template-columns: 1fr;
  gap: 15px;
  padding-top: 24px;
}

.footer-links {
  gap: 18px;
}

.footer-links a {
  font-size: 12px;
}

.mobile-buy-bar {
  position: fixed;
  z-index: 220;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 10px;
  display: flex !important;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px 8px 16px;
  border: 1px solid rgba(20, 28, 40, 0.10);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(17, 29, 48, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-buy-bar > span {
  display: grid;
  line-height: 1.2;
}

.mobile-buy-bar small {
  color: var(--muted);
  font-size: 9px;
}

.mobile-buy-bar strong {
  margin-top: 2px;
  font-size: 16px;
}

.mobile-buy-bar a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* 手机端教程页面 */
.tutorial-body {
  padding-bottom: 0;
}

.subpage-header .nav-wrap {
  height: 58px;
}

.back-link {
  font-size: 12px;
}

.tutorial-main {
  padding: 44px 0 64px;
}

.status-pill {
  margin-bottom: 14px;
  font-size: 10px;
}

.tutorial-hero .eyebrow {
  margin-bottom: 9px;
  font-size: 10px;
}

.guide-grid {
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 28px;
}

.guide-step {
  display: grid;
  min-height: 0;
  grid-template-columns: 58px 1fr;
  column-gap: 10px;
  padding: 17px;
  border-radius: 17px;
}

.guide-step > span {
  grid-row: 1 / 3;
  font-size: 9px;
}

.guide-step h2 {
  margin: 0 0 3px;
  font-size: 16px;
}

.guide-step p {
  font-size: 11.5px;
}

.guide-notice {
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  padding: 18px;
  border-radius: 17px;
}

.guide-notice h2 {
  font-size: 16px;
}

.guide-notice p {
  font-size: 11.5px;
}

.guide-notice .button {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 39px;
  }

  .advantage-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: 150px;
  }

  .price-card {
    flex-basis: 88vw;
  }
}

/* 手机端首页 */
.hero h1 {
  max-width: 355px;
  font-size: clamp(36px, 10.5vw, 45px);
}

.hero-subtitle {
  max-width: 390px;
  line-height: 1.62;
}

.help-home-header {
  grid-template-columns: 1fr;
  gap: 0;
}

.help-home-header .section-heading {
  margin-bottom: 16px;
}

.help-search-entry {
  margin-bottom: 14px;
  padding: 15px 16px;
  border-radius: 16px;
}

.help-search-entry span {
  font-size: 10.5px;
}

.help-search-entry strong {
  font-size: 13px;
}

.help-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.help-category-grid a {
  min-height: 133px;
  padding: 14px;
  border-radius: 16px;
}

.help-category-grid span {
  font-size: 9px;
}

.help-category-grid strong {
  font-size: 14px;
}

.help-category-grid small {
  font-size: 9.5px;
  line-height: 1.45;
}

.help-home-footer {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  padding-top: 15px;
}

.help-home-footer p,
.help-home-footer a {
  font-size: 10.5px;
}

.text-link {
  margin-top: 17px;
  font-size: 11px;
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 35px;
  }
}

/* 精简首页手机节奏 */
.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.pricing-section .section-heading {
  margin-bottom: 14px;
}

.plan-shared-service {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 13px;
  border-radius: 15px;
}

.plan-shared-service > span {
  grid-column: 1 / -1;
  padding: 7px 9px;
  text-align: center;
}

.plan-shared-service > strong {
  padding: 8px 2px;
  border-top: 1px solid rgba(23, 105, 224, 0.10);
  font-size: 9px;
  text-align: center;
}

.plan-shared-service > strong + strong {
  border-left: 1px solid #e1e8f1;
}

.price-card {
  min-height: 382px;
}

.compact-service-section .section-heading {
  margin-bottom: 17px;
}

.compact-service-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.compact-service-card {
  display: grid;
  min-height: 0;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 15px;
  border-radius: 17px;
}

.compact-service-card > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 9px;
}

.compact-service-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.compact-service-card p {
  font-size: 10.5px;
  line-height: 1.55;
}

.compact-help-grid a {
  min-height: 124px;
}

.help-quick-links {
  display: flex;
  gap: 4px 12px;
}

.help-quick-links span,
.help-quick-links a {
  font-size: 9.5px;
}
