* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #222;
}

/* ================= 主页面 ================= */

.main-body {
  background: #f4f4f5;
  min-height: 100vh;
}

.main-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 输入行 */

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.text-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #d4d4d8;
  font-size: 15px;
}

.text-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,.25);
}

/* 按钮通用 */

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 15px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
}

.dark-btn {
  background: #111827;
  color: #f9fafb;
  padding-inline: 16px;
}

.dark-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(15,23,42,.35);
}

.green-btn {
  background: #059669;
  color: #ecfdf5;
}

.green-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(5,150,105,.35);
}

.copy-btn {
  margin-top: 8px;
}

/* 预设链接按钮区域 */

.preset-block {
  margin-top: 14px;
  margin-bottom: 8px;
}

.preset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #e4e4e7;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

/* ⭐ 整块二维码区域整体居中 */

.qr-section {
  /* 控制红框这整块的宽度，并水平居中 */
  max-width: 360px;        /* 你可以根据二维码大小微调，比如 340 / 380 */
  margin: 18px auto 0;     /* auto 让这一块整体居中 */
}

/* 二维码标题 */

.section-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;       /* 标题文字也居中 */
}

/* 二维码本体 */

.qr-wrapper {
  margin-top: 12px;
  display: flex;
  justify-content: center;  /* 在 qr-section 内再次居中二维码图片 */
}

.qr-box {
  width: 260px;             /* 你的二维码是大号，可以略大于 240 */
  height: 260px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* 下载按钮（跟着二维码一起被居中） */

.download-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.download-btn {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.android-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.ios-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.download-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.3);
}

/* 手机端适配 */

@media (max-width: 600px) {
  .main-container {
    padding-inline: 14px;
  }
  .main-title {
    font-size: 22px;
  }
  .input-row {
    flex-direction: column;
  }
  .dark-btn {
    width: 100%;
  }
}
