/* 与 nPlayer 领奖页一致的科技风（简洁版） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cyan: #00d4ff;
    --blue: #0088ff;
    --border: rgba(0, 200, 255, 0.35);
    --bg: #060a12;
    --panel: rgba(8, 16, 28, 0.92);
    --text: #e8f4ff;
    --label: #7a9bb8;
    --input-bg: rgba(4, 12, 24, 0.85);
    --input-border: rgba(0, 180, 220, 0.25);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 70% 50% at 50% -20%, rgba(0, 136, 255, 0.18) 0%, transparent 55%),
        linear-gradient(165deg, #060a12 0%, #0a1420 50%, #0d1a2d 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
    padding: max(20px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.wrap { max-width: 420px; margin: 0 auto; }

.head { text-align: center; margin-bottom: 18px; }

.head h1 {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
}

.head p { margin-top: 8px; font-size: 13px; color: var(--label); }

.panel {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 18px;
    box-shadow: 0 0 32px rgba(0, 100, 200, 0.12);
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--label);
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 16px;
    outline: none;
}

.input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.input.bad { border-color: #ff6b7a; }

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row .input {
    flex: 1;
    min-width: 0;
    letter-spacing: 2px;
}

.captcha-pic {
    flex-shrink: 0;
    background: #fff;
    padding: 4px 6px;
    border-radius: 8px;
    border: 2px solid rgba(0, 200, 255, 0.55);
    box-shadow: 0 0 14px rgba(0, 200, 255, 0.3);
    min-height: 44px;
    cursor: pointer;
}

.captcha-pic img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 120px;
}

.captcha-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #5a8aaa;
}

.btn {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid rgba(0, 229, 255, 0.55);
    border-radius: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #0088ff 100%);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.35);
    color: #041018;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn:disabled { opacity: 0.65; cursor: not-allowed; }

.note {
    margin-top: 14px;
    font-size: 12px;
    color: #5a8aaa;
    line-height: 1.6;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(8, 16, 28, 0.95);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    transition: transform 0.3s;
    z-index: 99;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.ok-badge {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 16px;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.1);
    font-size: 14px;
}

.row span:first-child { color: var(--label); }
.row span:last-child { font-weight: 600; word-break: break-all; cursor: pointer; }
.row span.copied { color: #34d399; }

.link {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #0088ff 100%);
    color: #041018;
    font-weight: 700;
    text-decoration: none;
}

.success-panel { animation: fadeIn 0.35s ease; }

.qr-box {
    margin-top: 18px;
    padding: 16px;
    text-align: center;
    border-radius: 10px;
    border: 1px dashed rgba(0, 200, 255, 0.35);
    background: rgba(4, 12, 24, 0.5);
}

.qr-title {
    font-size: 14px;
    color: var(--cyan);
    margin-bottom: 12px;
    font-weight: 600;
}

.qr-box img {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 12px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
}

.qr-url {
    margin-top: 4px;
    padding: 10px 8px;
    min-height: 44px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 136, 255, 0.045);
    font-size: 14px;
    color: #9bc7df;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.75;
    cursor: pointer;
}

.copyable.copied { color: #34d399; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

html, body { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 注册页福利礼包码：码在上、奖励紧凑，手机首屏能看到两个码 */
.gift-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 200, 255, 0.12);
}

.gift-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.gift-head h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
}

.gift-head p { font-size: 11px; color: var(--label); }

.gift-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gift-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, 0.28);
    background: rgba(4, 12, 24, 0.65);
    color: #e8f4ff;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.gift-code-btn strong { font-size: 16px; }

.gift-code-btn.gift-vip {
    border-color: rgba(255, 200, 80, 0.5);
    background: rgba(42, 28, 8, 0.55);
    color: #ffd36a;
}

.gift-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 200, 80, 0.16);
    color: #ffd36a;
}

.gift-detail {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, 0.18);
    background: rgba(4, 12, 24, 0.45);
}

.gift-detail.gift-vip {
    border-color: rgba(255, 200, 80, 0.28);
    background: rgba(42, 28, 8, 0.28);
}

.gift-detail-title {
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--label);
}

.gift-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gift-items span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 180, 220, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.16);
    font-size: 12px;
    line-height: 1.4;
    color: var(--text);
}

.gift-detail.gift-vip .gift-items span {
    background: rgba(255, 200, 80, 0.08);
    border-color: rgba(255, 200, 80, 0.18);
}

.gift-code.copied, .gift-code-btn.copied { color: #34d399; }

@media (max-width: 480px) {
    body { padding: 10px 10px 16px; }
    .head { margin-bottom: 10px; }
    .head h1 { font-size: 18px; letter-spacing: 1px; }
    .head p { margin-top: 4px; font-size: 12px; }
    .panel { padding: 14px 12px; }
    .field { margin-bottom: 10px; }
    .field label { margin-bottom: 4px; font-size: 13px; }
    .input, .captcha-pic { min-height: 40px; }
    .captcha-pic { padding: 3px 5px; }
    .captcha-pic img { height: 34px; max-width: 96px; }
    .captcha-tip { display: none; }
    .btn { min-height: 42px; margin-top: 2px; }
    .note { margin-top: 8px; }
    .gift-box { margin-top: 10px; padding-top: 10px; }
}

/* 注册与创角验证的分步入口 */
.creation-secondary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 13px 12px; border: 1px solid rgba(0,180,220,.2); border-radius: 8px; background: rgba(0,136,255,.035); text-align: left; }
.creation-secondary-copy { flex: 1; min-width: 0; }
.creation-secondary-copy > span { color: var(--text); font-size: 14px; font-weight: 600; }
.creation-secondary-copy p { margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--label); overflow-wrap: anywhere; }
.creation-secondary a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-width: 112px; min-height: 44px; padding: 9px 12px; border: 1px solid rgba(0,212,255,.42); border-radius: 8px; background: rgba(0,136,255,.08); color: #63e6ff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.creation-secondary a:hover { color: #c1f7ff; border-color: var(--cyan); background: rgba(0,136,255,.16); }
.creation-next { margin: 22px 0; }
.creation-cta { margin-top: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(0,229,255,.55); box-shadow: 0 0 18px rgba(0,200,255,.2); line-height: 1.5; }
.creation-next p { margin-top: 10px; color: var(--label); text-align: center; font-size: 12px; line-height: 1.7; }
.creation-secondary a:focus-visible, .creation-cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 359px) { .creation-secondary { padding: 12px 10px; gap: 10px; } .creation-secondary a { min-width: 108px; padding: 9px 10px; } }
