:root {
  --bg: #eef3fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1f2937;
  --line: rgba(108, 124, 163, 0.16);
  --primary: #3f57e8;
  --primary-2: #13b89b;
  --shadow: 0 24px 54px rgba(32, 47, 88, 0.14);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  line-height: 1.5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(63, 87, 232, 0.12), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(19, 184, 155, 0.16), transparent 22%),
    linear-gradient(180deg, #f5f8ff 0%, var(--bg) 100%);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

button {
  font: inherit;
}

.shdow {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(7, 13, 27, 0.56);
  z-index: 999;
}

.distribute-header {
  position: relative;
  height: 208px;
  background-image:
    linear-gradient(135deg, rgba(50, 70, 191, 0.9), rgba(19, 184, 155, 0.82)),
    url("../images/distribute-bg.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.distribute-header::before,
.distribute-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.distribute-header::before {
  top: 34px;
  right: 12%;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
}

.distribute-header::after {
  left: 10%;
  bottom: -34px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
}

.container {
  width: min(92%, 1040px);
  margin: 0 auto;
}

.cont {
  margin-top: -122px;
  padding: 0 0 30px;
}

.panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.main-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: 146px 1fr;
  gap: 22px;
  align-items: center;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 146px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
  box-shadow: 0 14px 36px rgba(35, 49, 88, 0.12);
}

.icon-wrap img {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  border: 1px solid #e5e8ef;
  object-fit: cover;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(63, 87, 232, 0.08);
  color: #3246bf;
  font-size: 13px;
  font-weight: 600;
}

.name {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.06;
  font-weight: 700;
  word-break: break-word;
}

.subtitle {
  margin: 0 0 8px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.name-info {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #667085;
}

.download {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
}

.btn-main {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(63, 87, 232, 0.24);
}

.btn-sub {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.system {
  margin: 12px 0 0;
  font-size: 14px;
  color: #667085;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #43506b;
  border: 1px solid var(--line);
  font-weight: 500;
}

.desc {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #4659e8, #3848bf);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 12px 28px rgba(68, 85, 230, 0.16);
}

.desc .title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.service-line {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #8a94a6;
}

.qr-card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.qr-head strong {
  display: block;
  font-size: 20px;
}

.qr-head span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6d7890;
}

.download-code {
  width: 172px;
  margin: 16px auto 0;
  padding: 12px;
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 14px 28px rgba(25, 32, 56, 0.08);
}

.download-code canvas {
  display: block;
  width: 146px;
  height: 146px;
  margin: 0 auto;
}

.tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: #556074;
}

.qr-caption {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7a8498;
}

#maskTip {
  display: block;
  width: min(92%, 420px);
  margin: 12px auto 0;
}

.modal {
  width: min(92%, 520px);
  margin: 120px auto 0;
  padding: 0 0 24px;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.modal-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}

.modal-head p {
  margin: 0;
  font-size: 22px;
  color: #344054;
}

.modal-body {
  padding: 0 22px;
  font-size: 14px;
  color: #475467;
}

.modal-body p {
  margin: 26px 0;
  line-height: 1.9;
}

.modal-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  min-width: 108px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-bor {
  color: #08c1a0;
  background: transparent;
  border: 1px solid #08c1a0;
}

@media (max-width: 900px) {
  .main-stage {
    grid-template-columns: 1fr;
  }

  .qr-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .distribute-header {
    height: 182px;
  }

  .cont {
    margin-top: -98px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .icon-wrap {
    margin: 0 auto;
  }

  .download,
  .quick-meta {
    justify-content: center;
  }

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

@media (max-width: 520px) {
  .distribute-header {
    height: 160px;
  }

  .cont {
    margin-top: -86px;
  }

  .icon-wrap {
    width: 132px;
    height: 132px;
    border-radius: 26px;
  }

  .icon-wrap img {
    width: 102px;
    height: 102px;
    border-radius: 22px;
  }

  .name {
    font-size: 26px;
  }

  .download-btn {
    width: 100%;
    min-width: 0;
  }

  .modal {
    margin-top: 88px;
  }

  .modal-btn-wrap {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
