*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;
    background:#f3f5f9;
    color:#222;
    -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}

:root{
    --brand:#2485ff;
    --brand-light:#40a9ff;
    --brand-soft:#e6f3ff;
    --border:#e3e6ef;
    --text-muted:#8a8ea3;
    --danger:#ff4d4f;
}

.page{
    max-width:560px;
    margin:0 auto;
    background:#fff;
    min-height:100vh;
    padding-bottom:40px;
    box-shadow:0 0 0 1px rgba(0,0,0,.02);
}

.header{
    padding:14px 14px 10px;
    background:linear-gradient(135deg,#1b73f4,#40a9ff);
    color:#fff;
}
.header-top{
    display:flex;
    align-items:center;
    gap:10px;
}
.logo{
    width:44px;
    height:44px;
    border-radius:16px;
    overflow:hidden;
}
.logo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.logo span{
    display:none;
}

.head-txt-main{
    font-size:17px;
    font-weight:700;
}
.head-txt-sub{
    font-size:12px;
    opacity:.96;
    margin-top:3px;
}
.header-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
    font-size:11px;
    opacity:.96;
    gap:8px;
    flex-wrap:wrap;
}
.header-tag{
    padding:3px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.35);
}

.main{
    padding:12px 10px 0;
}

.card{
    background:#fff;
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:0 4px 12px rgba(15,35,95,.03);
    padding:13px 12px 11px;
    margin-bottom:10px;
}
.card-hd{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}
.card-hd h2{
    font-size:14px;
    font-weight:700;
}
.card-hd small{
    font-size:11px;
    color:var(--text-muted);
}

.input-row{
    margin-top:2px;
}
.input-row input{
    width:100%;
    padding:9px 11px;
    border-radius:10px;
    border:1px solid #dde1eb;
    font-size:13px;
    outline:none;
    transition:border-color .18s,box-shadow .18s,transform .12s;
}
.input-row input:focus{
    border-color:var(--brand);
    box-shadow:0 0 0 1px rgba(36,133,255,.2);
    transform:translateY(-1px);
}
.input-hint{
    margin-top:6px;
    font-size:11px;
    color:var(--text-muted);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
}
.input-hint span.badge{
    padding:2px 6px;
    border-radius:999px;
    background:var(--brand-soft);
    color:var(--brand);
    font-size:10px;
    white-space:nowrap;
}

.coupon-bar{
    padding:9px 10px;
    border-radius:11px;
    background:var(--brand-soft);
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    transition:transform .12s,box-shadow .15s;
}
.coupon-bar:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(36,133,255,.25);
}
.coupon-main{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.coupon-main strong{
    font-size:13px;
    color:#1555b0;
}
.coupon-main span{
    font-size:11px;
    color:#486aac;
}
.coupon-arrow{
    font-size:18px;
    color:var(--brand);
}

.coupon-list{
    margin-top:8px;
    display:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
.coupon-item{
    position:relative;
    padding:7px 8px;
    border-radius:10px;
    background:#fff;
    border:1px dashed rgba(36,133,255,.45);
    color:#486aac;
    font-size:11px;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.coupon-item strong{
    font-size:14px;
    color:var(--brand);
}
.coupon-tag{
    position:absolute;
    right:6px;
    top:6px;
    font-size:10px;
    padding:1px 5px;
    border-radius:999px;
    background:rgba(36,133,255,.08);
    color:var(--brand);
}
.coupon-actions{
    grid-column:1/-1;
    display:flex;
    justify-content:flex-end;
    margin-top:2px;
}
.coupon-actions button{
    border:none;
    border-radius:999px;
    padding:5px 10px;
    font-size:11px;
    background:linear-gradient(135deg,#1b73f4,#40a9ff);
    color:#fff;
    cursor:pointer;
    box-shadow:0 3px 8px rgba(27,115,244,.35);
}

.pkg-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}
@media (min-width:520px){
    .pkg-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
.pkg-item{
    position:relative;
    padding:8px 9px 7px;
    border-radius:11px;
    border:1px solid #e3e6ef;
    background:#fff;
    cursor:pointer;
    transition:transform .12s,box-shadow .16s,border-color .12s,background .12s;
}
.pkg-item:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(0,0,0,.06);
    border-color:rgba(36,133,255,.45);
}
.pkg-item.active{
    border-color:var(--brand);
    background:linear-gradient(135deg,#f2f7ff,#e0efff);
    box-shadow:0 0 0 1px rgba(36,133,255,.36);
}
.pkg-line1{
    font-size:17px;
    font-weight:700;
    color:#1c1f2e;
    margin-bottom:3px;
}
.pkg-line2{
    font-size:11px;
    color:var(--text-muted);
    margin-bottom:3px;
}
.pkg-line3{
    font-size:11px;
    color:#4f659b;
}
.pkg-tag{
    position:absolute;
    right:4px;
    top:4px;
    padding:1px 6px;
    font-size:10px;
    border-radius:999px;
    background:#ff7875;
    color:#fff;
}
.pkg-tag.rec{background:#faad14;}

.order-summary{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    color:var(--text-muted);
    margin-top:6px;
}
.order-summary strong{
    font-size:14px;
    color:#1c1f2e;
}

.paylist{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.pay{
    flex:1;
    min-width:46%;
    padding:7px 8px;
    border-radius:10px;
    border:1px solid #e3e6ef;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    cursor:pointer;
    transition:transform .12s,box-shadow .16s,border-color .12s,background .12s;
}
.pay:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(0,0,0,.06);
    border-color:rgba(0,0,0,.06);
}
.pay.active{
    border-color:var(--brand);
    background:var(--brand-soft);
    box-shadow:0 0 0 1px rgba(36,133,255,.4);
}
.pay-icon{
    width:24px;
    height:24px;
    border-radius:9px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.pay-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.pay-name{
    font-size:13px;
}
.pay-tip{
    font-size:11px;
    color:var(--text-muted);
    margin-top:7px;
    line-height:1.6;
}

.submit-card{
    text-align:center;
}
.btn-submit{
    display:block;
    width:100%;
    border:none;
    outline:none;
    border-radius:999px;
    padding:10px 0;
    background:linear-gradient(135deg,#1b73f4,#40a9ff);
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 7px 16px rgba(27,115,244,.4);
    transition:transform .09s,box-shadow .1s,opacity .1s;
    text-align:center;
    white-space:nowrap;
}
.btn-submit:active{
    transform:translateY(1px) scale(.98);
    box-shadow:0 3px 8px rgba(27,115,244,.3);
    opacity:.9;
}
.submit-note{
    margin-top:7px;
    font-size:11px;
    color:var(--text-muted);
    line-height:1.6;
    text-align:left;
}

.fold-card{
    padding:4px 0 4px;
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:0 3px 10px rgba(15,35,95,.03);
    margin-bottom:8px;
}
.fold-item+.fold-item{
    border-top:1px solid var(--border);
}
.fold-title{
    padding:9px 11px;
    font-size:13px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
}
.fold-title span{
    flex:1;
}
.fold-arrow{
    font-size:16px;
    color:var(--text-muted);
    transition:transform .18s;
}
.fold-item.open .fold-arrow{
    transform:rotate(90deg);
    color:var(--brand);
}
.fold-body{
    display:none;
    padding:0 11px 9px;
    font-size:12px;
    color:#4a4f63;
    line-height:1.8;
}
.fold-body p{
    margin-top:6px;
}
.fold-body ul{
    padding-left:16px;
    margin-top:4px;
}
.fold-body li{
    margin-bottom:3px;
}

.toast{
    position:fixed;
    left:10px;
    bottom:70px;
    background:rgba(0,0,0,.82);
    color:#fff;
    font-size:11px;
    padding:8px 9px;
    border-radius:9px;
    box-shadow:0 6px 14px rgba(0,0,0,.3);
    opacity:0;
    transform:translateY(20px);
    pointer-events:none;
    transition:opacity .25s,transform .25s;
    z-index:30;
    white-space:nowrap;
    display:inline-block;
}
.toast.show{
    opacity:1;
    transform:translateY(0);
}
.toast span.amount{
    color:#91d5ff;
    font-weight:700;
}
.toast span.pkg{
    color:#bae7ff;
}

.footer-icp{
    max-width:560px;
    margin:0 auto;
    padding:10px 10px 14px;
    font-size:11px;
    color:#9aa0b5;
    text-align:center;
    line-height:1.6;
}
