/* ---------- 分享页（二维码 / 手机跳转 / 提示页 / 错误页） ---------- */
/* 顶部推广入口 */
.top-promo {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.top-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px;
}

.top-promo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.2s;
  min-width: 0;
}

.top-promo-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.12);
  text-decoration: none;
}

.top-promo-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.top-promo-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-promo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.top-promo-desc {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .top-promo-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.share-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 14px 24px;
}

.share-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  text-align: center;
}

.share-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.share-top .site-name {
  font-size: 13px;
  color: var(--text3);
}

.disk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.resource-name {
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0 6px;
  word-break: break-all;
}

.extract-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text2);
  background: #fff8e6;
  border: 1px solid #f5e3ad;
  color: #8a6d1a;
  border-radius: 999px;
  padding: 4px 14px;
  margin: 6px 0 14px;
}

.extract-row code {
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b5310;
}

.qr-box {
  display: inline-flex;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 12px;
}

.qr-box svg {
  display: block;
  width: 216px;
  height: 216px;
  max-width: 100%;
}

.scan-tip {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 6px;
}

.scan-tip b {
  color: var(--primary);
}

.hint-line {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.8;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.guide-img {
  margin-top: 16px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.card-actions .btn {
  flex: 1;
}

.share-cta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text3);
}

.share-cta a {
  font-weight: 600;
}

/* ---------- 跳转 / 提示页 ---------- */
.jump-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(160deg, #6366f1 0%, #7c6cf6 55%, #8b5cf6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.jump-overlay::before,
.jump-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.jump-overlay::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -100px;
}

.jump-overlay::after {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -80px;
}

.jump-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.jump-disk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.jump-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.jump-ad {
  font-size: 15px;
  color: var(--text2);
  background: #f6f7fb;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  line-height: 1.7;
  word-break: break-word;
}

.jump-target {
  display: block;
  font-size: 12px;
  color: var(--text3);
  word-break: break-all;
  margin: 10px 0 4px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text2);
  margin: 14px 0 10px;
}

.countdown-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  min-width: 34px;
}

.progress-track {
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #9b59d6);
  border-radius: 99px;
  transition: width 0.3s linear;
}

.jump-actions {
  display: flex;
  gap: 10px;
}

.jump-actions .btn {
  flex: 1;
}

.jump-hint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.8;
}

.jump-hint .btn {
  margin-top: 8px;
}

/* ---------- 错误页 ---------- */
.error-card {
  text-align: center;
  padding: 48px 20px;
}

.error-card .emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
}

.error-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.error-card p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 22px;
}

@media (max-width: 480px) {
  .share-card {
    padding: 20px 16px 18px;
  }

  .qr-box svg {
    width: 190px;
    height: 190px;
  }
}
