:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --card-bg: #ffffff;
  --bg: #f8fbff;
}

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

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}

.soft-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.shape-a {
  width: 260px;
  height: 260px;
  background: #dbeafe;
  top: -40px;
  right: -40px;
}
.shape-b {
  width: 240px;
  height: 240px;
  background: #ede9fe;
  bottom: -40px;
  left: -40px;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 8px 30px rgba(30, 41, 59, 0.05);
  border: 1px solid #edf2f9;
}

/* Download Box */
.download-box {
  width: 100%;
}

.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.4;
}

.download-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  padding: 5px 6px 5px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.download-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-right: 8px;
}

.input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-url-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1e293b;
  padding: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-blue {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.btn-copy-blue:hover {
  background: #2563eb;
}

.btn-copy-blue:active {
  transform: scale(0.98);
}

/* Notice / Description Box */
.notice-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.notice-content {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  word-break: break-all;
  white-space: pre-wrap;
}

/* QQ Button */
.action-wrap {
  margin-top: 20px;
}

.btn-qq-group {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.btn-qq-group:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-qq-group:active {
  transform: scale(0.99);
}

.qq-btn-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Modal Overlay */
.qq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qq-modal-overlay.active {
  display: flex;
}

.qq-modal-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.qq-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-modal-icon svg {
  width: 26px;
  height: 26px;
}

.qq-modal-card h3 {
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 14px;
}

.qq-badge-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
}

.qq-badge-box span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.qq-badge-box strong {
  font-size: 18px;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.qq-modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-primary-blue {
  flex: 1;
  height: 42px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.btn-secondary-line {
  flex: 1;
  height: 42px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.qq-modal-tip {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

.qq-modal-close {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
}

/* Toast */
.toast-message {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
}

.toast-message svg {
  width: 16px;
  height: 16px;
  stroke: #22c55e;
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
