:root {
  --bg: #ffffff;
  --surface: #f7fbff;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --green: #16a34a;
  --red: #ef4444;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --weak: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef6ff;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.12), transparent 280px),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
}

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 720px) {
  body {
    padding: 28px 0;
  }

  .page-shell {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.12);
  }
}

.brand-header {
  width: 100%;
  padding: 18px 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

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

.brand-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 750;
  line-height: 35px;
  letter-spacing: 0;
}

.brand-copy p {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.hero-section {
  position: relative;
  width: calc(100% - 32px);
  margin: 2px auto 14px;
  padding: 22px 16px 20px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 26px;
  background: #f5fbff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.hero-section h2 {
  max-width: none;
  margin: 0 auto;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.task-list {
  display: grid;
  gap: 12px;
  padding: 0 14px;
  background: #ffffff;
}

.task-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 20px;
  align-items: center;
  width: 100%;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  gap: 14px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.task-card:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.task-card:focus-visible,
.download-button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.task-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 18px;
}

.svg-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.task-icon.purple {
  color: #7c3aed;
  background: linear-gradient(145deg, #f5e8ff, #efe4ff);
}

.task-icon.green {
  color: #16a34a;
  background: linear-gradient(145deg, #dcfce7, #cef8de);
}

.task-icon.orange {
  color: #f97316;
  background: linear-gradient(145deg, #ffedd5, #fff0df);
}

.task-icon.blue {
  color: #2563eb;
  background: linear-gradient(145deg, #dbeafe, #e6f0ff);
}

.task-icon.violet {
  color: #6d28d9;
  background: linear-gradient(145deg, #ede9fe, #f3ecff);
}

.task-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.task-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.task-title-row strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  line-height: 28px;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.tag.purple {
  color: #7c3aed;
  background: #f3e8ff;
}

.tag.green {
  color: #16a34a;
  background: #dcfce7;
}

.tag.orange {
  color: #f97316;
  background: #ffedd5;
}

.tag.blue {
  color: #2563eb;
  background: #dbeafe;
}

.tag.violet {
  color: #6d28d9;
  background: #ede9fe;
}

.task-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #374151;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-price {
  color: var(--red);
  font-size: 25px;
  font-weight: 750;
  line-height: 32px;
  white-space: nowrap;
}

.task-price span {
  margin-left: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--weak);
}

.download-section {
  padding: 24px 14px 26px;
  background: #ffffff;
  text-align: center;
}

.download-panel {
  padding: 22px 14px 18px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(22, 163, 74, 0.1)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.download-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.download-section p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.download-buttons,
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 12px) / 2);
  min-width: 0;
  height: 66px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  cursor: pointer;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.download-button:active {
  transform: translateY(1px) scale(0.985);
}

.download-button.android {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
}

.download-button.ios {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.download-button .svg-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.download-button .svg-icon.apple {
  width: 30px;
  height: 30px;
}

.download-button span:last-child {
  display: grid;
  min-width: 0;
  text-align: left;
}

.download-button strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button small {
  overflow: hidden;
  opacity: 0.92;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-text {
  margin-top: 18px !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  color: var(--weak) !important;
  font-size: 13px !important;
  line-height: 20px !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(100%, 398px);
  padding: 24px 16px 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.22);
  text-align: center;
  transform: translateY(18px);
  transition: transform 180ms ease;
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--weak);
  cursor: pointer;
}

.modal-close .svg-icon {
  width: 20px;
  height: 20px;
}

.modal-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.modal-panel h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  line-height: 31px;
}

.modal-panel p {
  margin: 8px auto 0;
  max-width: 21em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
}

.modal-actions {
  margin-top: 18px;
}

.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
}

.wechat-guide.is-visible {
  display: block;
}

.wechat-guide__content {
  position: relative;
  padding: max(68px, calc(env(safe-area-inset-top) + 56px)) 24px 0;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.wechat-guide__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.wechat-guide__num {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: #38a8ff;
  box-shadow: 0 8px 20px rgba(56, 168, 255, 0.34);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 360px) {
  .brand-card {
    gap: 12px;
    padding: 12px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .brand-copy h1 {
    font-size: 26px;
    line-height: 33px;
  }

  .brand-copy p {
    font-size: 14px;
    line-height: 20px;
  }

  .hero-section {
    padding: 20px 12px 18px;
  }

  .hero-section h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .task-card {
    grid-template-columns: 68px minmax(0, 1fr) 18px;
    min-height: 128px;
    gap: 12px;
    padding: 14px;
  }

  .task-icon {
    width: 68px;
    height: 68px;
  }

  .task-icon .svg-icon {
    width: 32px;
    height: 32px;
  }

  .task-title-row strong {
    font-size: 19px;
    line-height: 27px;
  }

  .task-price {
    font-size: 23px;
  }

  .download-button {
    gap: 8px;
  }

  .wechat-guide__content {
    padding-right: 18px;
    padding-left: 18px;
    font-size: 25px;
  }

}

@media (max-width: 335px) {
  .download-button .svg-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
