* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff 0%, #f5f6fa 100%);
  min-height: 100vh; padding: 40px 16px 60px; color: #2c3e50;
}
.wrap { max-width: 520px; margin: 0 auto; }

/* 顶部头图 */
.head {
  text-align: center; margin-bottom: 24px; padding: 30px 20px;
  background: linear-gradient(135deg, #ff7f14 0%, #ff5722 100%);
  border-radius: 14px; color: #fff;
}
.head .icon { font-size: 44px; margin-bottom: 10px; }
.head h1 { font-size: 20px; margin-bottom: 6px; }
.head p { font-size: 13px; opacity: .9; }

/* 领取卡片 */
.card {
  background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
  margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
label { display: block; font-size: 13px; color: #555; margin-bottom: 8px; }
.input-wrap { display: flex; gap: 10px; }
.input-wrap input {
  flex: 1; padding: 12px 14px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 15px;
  outline: none; transition: border .2s;
}
.input-wrap input:focus { border-color: #ff7f14; }
.claim-btn {
  padding: 12px 24px; border: none; border-radius: 8px; background: #ff7f14; color: #fff;
  font-size: 15px; font-weight: 600; transition: background .2s; white-space: nowrap;
}
.claim-btn:hover { background: #e56f0a; }
.claim-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 结果区 */
#result { display: none; }
#result.show { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.result-head .check { width: 44px; height: 44px; border-radius: 50%; background: #27ae60; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.result-title { font-size: 17px; font-weight: 700; }
.result-desc { font-size: 13px; color: #888; margin-top: 4px; }

.links { margin-top: 12px; }
.link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
}
.link-url { flex: 1; font-size: 13px; color: #2c3e50; word-break: break-all; }
.copy-btn { padding: 7px 14px; border: none; border-radius: 6px; background: #ff7f14; color: #fff; font-size: 13px; flex-shrink: 0; }
.copy-btn:hover { background: #e56f0a; }

.note {
  background: #fff8e8; border: 1px solid #f5c97b; border-radius: 8px; padding: 12px 14px;
  font-size: 13px; color: #8a5a00; margin-top: 14px; white-space: pre-wrap;
}
.remain { margin-top: 14px; font-size: 13px; color: #666; }

.tip { text-align: center; color: #b0b8c0; font-size: 12px; margin-top: 24px; line-height: 1.8; }
.error-box {
  background: #fdedec; border: 1px solid #f5c6cb; color: #c0392b; border-radius: 8px;
  padding: 14px; text-align: center; font-size: 14px; margin-top: 16px; display: none;
}

/* 加载动画 */
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }