/* =========================================
   激活码页面样式（精致优化版）
   ========================================= */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%}

body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    min-height:100vh;
    padding:56px 16px 40px;
    color:#1e293b;
    background-color:#f4f7fb;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(147, 51, 234, 0.05) 0%, transparent 45%);
    background-attachment:fixed;
    position:relative;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}

/* 极光光晕背景 */
body::before,
body::after{
    content:'';
    position:fixed;
    border-radius:50%;
    filter:blur(90px);
    pointer-events:none;
    z-index:0;
    opacity:.65;
    animation:float 12s ease-in-out infinite alternate;
}
body::before{
    width:560px;height:560px;
    background:radial-gradient(circle, rgba(129,140,248,.4) 0%, rgba(129,140,248,0) 70%);
    top:-220px;left:-200px;
}
body::after{
    width:520px;height:520px;
    background:radial-gradient(circle, rgba(244,114,182,.25) 0%, rgba(244,114,182,0) 70%);
    bottom:-200px;right:-180px;
    animation-delay:-6s;
}
@keyframes float{
    0%{transform:translate(0,0) scale(1)}
    100%{transform:translate(40px,50px) scale(1.08)}
}

.page{position:relative;z-index:1;max-width:480px;margin:0 auto}

/* =========================================
   返回按钮（半透明毛玻璃质感，不刺眼）
   ========================================= */
.back-button{
    position:fixed;top:20px;left:20px;
    width:42px;height:42px;
    border-radius:50%;
    background:rgba(255, 255, 255, 0.7);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    color:#475569;
    border:1px solid rgba(255,255,255,0.9);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;z-index:1100;
    box-shadow:0 4px 12px rgba(15,23,42,0.05);
    transition:all .4s cubic-bezier(.16,1,.3,1);
    font-size:20px;padding:0;outline:none;
}
.back-button:hover{
    background:#fff;
    color:#2563eb;
    transform:scale(1.08);
    box-shadow:0 8px 20px -6px rgba(37,99,235,.15);
}
.back-button i{transition:all .4s cubic-bezier(.16,1,.3,1)}
.back-button:hover i{transform:translateX(-2px)}

/* =========================================
   主卡片（无顶部彩条，纯净毛玻璃）
   ========================================= */
.card{
    position:relative;
    overflow:hidden;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    padding:48px 34px 34px;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.92);
    box-shadow:
        0 2px 8px rgba(15,23,42,.03),
        0 24px 56px -14px rgba(37,99,235,.16);
    transition:box-shadow .4s ease;
}
.card:hover{
    box-shadow:
        0 2px 8px rgba(15,23,42,.03),
        0 32px 64px -14px rgba(37,99,235,.2);
}

/* =========================================
   头部（精致浅色渐变徽章，不再突兀）
   ========================================= */
.card-head{
    text-align:center;
    margin-bottom:26px;
    margin-top:6px;
}

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:10px 24px;
    border-radius:999px;
    
    /* 极浅的蓝紫渐变底 */
    background:linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    color:#2563eb; 
    
    font-size:18px;
    font-weight:800;
    letter-spacing:1.5px;
    
    /* 细腻的内高光和极弱的投影 */
    border:1px solid rgba(191, 219, 254, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 12px rgba(37, 99, 235, 0.06);
    transition:transform .3s ease, box-shadow .3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 8px 20px rgba(37, 99, 235, 0.12);
}

.badge i{
    font-size:22px;
    color:#4f46e5;
}

/* =========================================
   说明条
   ========================================= */
.rule-bar{
    padding:14px 18px;
    margin-bottom:24px;
    background:rgba(239,246,255,.75);
    border:1px solid #dbeafe;
    border-radius:16px;
    font-size:13px;line-height:1.85;
    color:#475569;text-align:center;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.rule-links{display:block;margin-top:2px}
.rule-bar a{
    color:#2563eb;font-weight:600;text-decoration:none;
    transition:color .2s;
}
.rule-bar a:hover{color:#1d4ed8;text-decoration:underline}

/* =========================================
   消息提示
   ========================================= */
.message{
    display:flex;align-items:center;gap:10px;
    padding:14px 16px;
    margin-bottom:22px;
    border-radius:14px;
    font-size:14px;line-height:1.65;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.msg-icon{font-size:20px;flex:0 0 auto}
.msg-text{flex:1;word-break:break-all;text-align:left}
.msg-success{background:rgba(236,253,245,.9);color:#065f46;border:1px solid #a7f3d0}
.msg-error{background:rgba(254,242,242,.9);color:#991b1b;border:1px solid #fecaca}
.copy-btn{
    flex:0 0 auto;
    display:inline-flex;align-items:center;gap:4px;
    padding:7px 14px;
    border:none;border-radius:9px;
    background:linear-gradient(135deg,#2563eb,#4f46e5);
    color:#fff;font-size:12px;font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(37,99,235,.28);
    transition:all .25s ease;
    font-family:inherit;
}
.copy-btn:hover{
    box-shadow:0 6px 14px rgba(37,99,235,.38);
    transform:translateY(-1px);
}

/* =========================================
   表单
   ========================================= */
.field{margin-bottom:20px}
.field-label{
    display:block;
    margin-bottom:10px;
    font-size:14px;font-weight:600;
    color:#334155;letter-spacing:.2px;
}

.input-wrap{position:relative;display:flex;align-items:center}

.input-icon{
    position:absolute;left:0;top:0;bottom:0;
    width:48px;
    display:flex;align-items:center;justify-content:center;
    color:#94a3b8;font-size:19px;
    border-right:1px solid #e2e8f0;
    border-radius:14px 0 0 14px;
    background:rgba(248,250,252,.9);
    transition:color .25s ease,background .25s ease;
    pointer-events:none;
    z-index:1;
}
.input-wrap:focus-within .input-icon{
    color:#2563eb;
    background:rgba(239,246,255,.9);
}

input[type="text"]{
    width:100%;height:54px;
    padding:0 52px 0 62px;
    border:1.5px solid #e2e8f0;
    border-radius:14px;
    background:rgba(248,250,252,.9);
    font-size:15px;color:#0f172a;
    outline:none;
    transition:border-color .25s ease,box-shadow .25s ease,background .25s ease;
    font-family:inherit;
}
input[type="text"]::placeholder{color:#a8b3c5}
input[type="text"]:focus{
    border-color:#2563eb;
    background:#fff;
    box-shadow:0 0 0 4px rgba(37,99,235,.1);
}

.help-icon{
    position:absolute;right:9px;
    width:34px;height:34px;
    display:flex;align-items:center;justify-content:center;
    border:none;border-radius:50%;
    background:#f1f5f9;color:#64748b;
    font-size:17px;cursor:pointer;
    transition:background .25s,color .25s,transform .15s;
    z-index:1;
}
.help-icon:hover{background:#2563eb;color:#fff;transform:scale(1.08)}

/* =========================================
   按钮
   ========================================= */
.submit-btn{
    width:100%;height:54px;
    margin-top:8px;
    border:none;border-radius:14px;
    background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);
    color:#fff;font-size:16px;font-weight:700;
    letter-spacing:.5px;cursor:pointer;
    box-shadow:0 10px 24px -6px rgba(37,99,235,.4);
    transition:transform .18s ease,box-shadow .18s ease,opacity .2s ease;
    display:flex;align-items:center;justify-content:center;gap:6px;
    font-family:inherit;
}
.submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px -6px rgba(37,99,235,.5);
}
.submit-btn:active{transform:translateY(0);box-shadow:0 6px 16px -4px rgba(37,99,235,.4)}
.submit-btn:disabled{opacity:.65;cursor:not-allowed;transform:none;box-shadow:none}
.submit-btn i{font-size:18px}

.login-btn{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;height:52px;
    margin-top:14px;
    border:1.5px solid #e2e8f0;border-radius:14px;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    color:#334155;font-size:15px;font-weight:600;
    text-decoration:none;
    transition:all .25s ease;
}
.login-btn:hover{
    border-color:#2563eb;
    color:#2563eb;
    background:#fff;
    transform:translateY(-1px);
    box-shadow:0 8px 20px -6px rgba(37,99,235,.2);
}
.login-btn i{font-size:18px}

/* =========================================
   隐私说明
   ========================================= */
.privacy-note{
    margin-top:24px;
    font-size:13px;color:#94a3b8;
    text-align:center;line-height:1.75;
}
.privacy-note label{cursor:pointer;display:inline-block}
.privacy-note input[type="checkbox"]{
    width:15px;height:15px;
    margin-right:5px;vertical-align:-2px;
    accent-color:#2563eb;cursor:pointer;
}
.privacy-note a{color:#2563eb;text-decoration:none;font-weight:500}
.privacy-note a:hover{text-decoration:underline}

/* =========================================
   弹窗
   ========================================= */
.popup-mask{
    position:fixed;inset:0;
    display:none;align-items:center;justify-content:center;
    padding:20px;
    background:rgba(15,23,42,.4);
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
    z-index:999;
    animation:fadeIn .2s ease;
}
.popup-box{
    width:100%;max-width:360px;
    padding:32px 26px 24px;
    background:#fff;border-radius:24px;
    text-align:center;
    box-shadow:0 24px 60px -12px rgba(15,23,42,.32);
    animation:popIn .28s cubic-bezier(.2,.9,.3,1.15);
}
.popup-icon{
    width:56px;height:56px;margin:0 auto 14px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    background:#eff6ff;color:#2563eb;
    font-size:26px;
}
.popup-title{
    font-size:17px;font-weight:800;
    color:#0f172a;margin-bottom:10px;letter-spacing:.3px;
}
.popup-content{
    font-size:14.5px;color:#475569;
    line-height:1.85;margin-bottom:22px;
    white-space:pre-line;
}
.popup-btn{
    width:100%;height:48px;
    border:none;border-radius:12px;
    background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);
    color:#fff;font-size:15px;font-weight:700;
    font-family:inherit;cursor:pointer;
    box-shadow:0 8px 20px -6px rgba(37,99,235,.4);
    transition:opacity .2s,transform .15s,box-shadow .2s;
}
.popup-btn:hover{opacity:.94;box-shadow:0 12px 26px -6px rgba(37,99,235,.5)}
.popup-btn:active{transform:scale(.98)}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(16px) scale(.95)}to{opacity:1;transform:none}}
@keyframes spin{100%{transform:rotate(360deg)}}

/* =========================================
   移动端适配
   ========================================= */
@media(max-width:480px){
    body{padding:32px 14px 28px}
    .back-button{top:14px;left:14px;width:38px;height:38px;font-size:18px}
    .card{padding:40px 22px 28px;border-radius:24px}
    .card-head{margin-bottom:20px;margin-top:0}
    
    /* 手机上稍微收缩 */
    .badge {
        padding: 8px 20px;
        font-size: 16px;
        gap: 8px;
    }
    .badge i {
        font-size: 20px;
    }
}