
@font-face {
    font-family: 'Nunito';
    src: url('/fonts/Nunito-bold.woff2') format('woff2');
}
:root{
    --bg1:#0b1026;
    --bg2:#1c2b6a;
    --bg3:#6a2bd9;
    --card:#ffffffee;
    --text:#1f2430;
    --muted:#6b7280;
    --primary:#6f78ff;
    --primary2:#9c4bff;
    --stroke:#e8e8ee;
    --shadow: 0 20px 60px rgba(0,0,0,.35);
    --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,Segoe UI,Roboto,Arial;
    color: var(--text);
    overflow-x:hidden;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(156,75,255,.35), transparent 60%),
    radial-gradient(900px 700px at 80% 30%, rgba(111,120,255,.28), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 55%, #0a0f22);
    background-attachment: fixed;
}

/* 动态光斑层（更“酷”，但不伤性能） */
.fx{
    position: fixed;
    inset: 0;
    pointer-events:none;
    overflow:hidden;
    z-index:0;
}
.blob{
    position:absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .55;
    mix-blend-mode: screen;
    background: radial-gradient(circle at 30% 30%, rgba(156,75,255,.85), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(111,120,255,.8), transparent 55%);
    animation: floaty 10s ease-in-out infinite;
}
.blob.b2{
    width: 640px;
    height: 640px;
    opacity:.45;
    background: radial-gradient(circle at 40% 20%, rgba(34,211,238,.55), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(156,75,255,.6), transparent 55%);
    animation-duration: 13s;
    animation-delay: -3s;
}
.blob.b3{
    width: 420px;
    height: 420px;
    opacity:.35;
    background: radial-gradient(circle at 30% 30%, rgba(255,61,113,.55), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(111,120,255,.5), transparent 55%);
    animation-duration: 16s;
    animation-delay: -6s;
}
@keyframes floaty{
    0%   { transform: translate(-10%, -5%) scale(1); }
    35%  { transform: translate(18%, 10%) scale(1.05); }
    70%  { transform: translate(8%, 22%) scale(.98); }
    100% { transform: translate(-10%, -5%) scale(1); }
}
@keyframes modalFadeIn{
    from { opacity: 0; scale: 0.92; }
    to { opacity: 1; scale: 1; }
}

.wrap{
    position: relative;
    z-index:1;
    min-height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 12px 12px 38px;
}

.panel{
    width: min(520px, 96vw);
    background: var(--card);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
}

.title{
    text-align:center;
    margin: 0;
    font-size: 28px;
    letter-spacing: .5px;
}
.subtitle{
    text-align: end;
    margin: 10px 10px 0 10px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.plans{
    margin-top: 22px;
    display:grid;
    gap: 14px;
}

.plan{
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
    background: rgba(255,255,255,.75);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.plan:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    border-color: rgba(111,120,255,.35);
}

.left .name{
    font-size: 18px;
    font-weight: 800;
    margin:0;
}
.left .desc{
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.right{
    text-align:right;
    display:flex;
    align-items: baseline;
    gap: 8px;
}
.price{
    font-family: 'Nunito';
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #15cae3, #2860cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;            
}
.unit{
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.footer-tip{
    margin-top: 18px;
    text-align:center;
    color: rgba(255,255,255,.78);
    font-size: 12px;
}

/* 弹窗 */
.overlay{
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    z-index: 50;
    padding: 18px 12px;
}
.overlay.show{
    display:flex;
    transition: opacity 0.25s ease;
}
.overlay.show.hiding{
    opacity: 0;
}
.overlay.show.hiding .modal{
    opacity: 0;
    transform: scale(0.98);
}
.overlay.show .modal{
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal{
    width: min(520px, 96vw);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 26px 80px rgba(0,0,0,.45);
    overflow:hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}
.modal .hd{
    padding: 18px 18px 12px;
    text-align:center;
}
.modal .hd .m-title{
    margin:0;
    font-size: 22px;
    font-weight: 900;
}
.modal .hd .m-price{
    margin: 8px 0 0;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Nunito';
}
.modal .bd{
    padding: 6px 18px 18px;
}
.qr{
    display:flex;
    justify-content:center;
    margin: 10px 0 14px;
}
.qr img{
    width: min(320px, 78vw);
    height: auto;
    border-radius: 14px;
    border: 1px solid #f0f0f5;
    background: #fff;
}

.warn{
    margin-top: 12px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 14px;
    padding: 14px 14px;
    color:#8c6d1f;
    line-height: 1.7;
    font-size: 13px;
}
.warn b{ color:#6a4f10; }

.remark{
    margin-top: 14px;
}
.remark label{
    font-size: 13px;
    color:#374151;
    font-weight: 700;
}
.remark input{
    margin-top: 8px;
    width:100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e7e7ef;
    padding: 0 12px;
    font-size: 14px;
    outline:none;
}
.remark input:focus{
    border-color: rgba(111,120,255,.65);
    box-shadow: 0 0 0 4px rgba(111,120,255,.12);
}

.actions{
    margin-top: 16px;
    display:grid;
    gap: 10px;
}
.btn{
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor:pointer;
    font-size: 16px;
    font-weight: 800;
}
.btn.primary{
    color:#fff;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
}
.btn.ghost{
    color:#474787;
    align-self: flex-end;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #1c2b6a22;            
}
.btn.link{
    background: transparent;
    color: #6b7280;
    height: 40px;
    font-weight: 700;
}

.close-x{
    position:absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    cursor:pointer;
    background: rgba(0,0,0,.05);
    font-size: 20px;
    color:#333;
}
#mUnit {
    display: none;
}
#day1 {
    font-weight: bold;
    font-family: 'Nunito';
    color: #2d6cdf;
}
/* 小屏优化 */
@media (max-width: 420px){
    .panel{ padding: 24px 18px 18px; }
    .title{ font-size: 24px; }
    .price{ font-size: 26px; }
}
#shut[data-seconds] {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 15px;
    color: #6D214F;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    background: #a4b0be;
    padding: 6px 8px;
    border-radius: 50px;
    min-width: 32px;
    align-items: center;
    justify-content: center;
}

#shut[data-seconds="0"]::before {
    content: '关闭'; 
}
#shut[data-seconds]:not([data-seconds="0"]):after {
    content: attr(data-seconds);
    font-family: 'Nunito';
    scale: 1.25;
    color: #182C61;
    cursor: not-allowed;
}
#mPrice::before {
    content: '¥';
}