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

.top-nav{
    position:sticky;
    top:0;
    z-index:90;
    background:#ffffff;
    border-bottom:1px solid #f1f1f1;
}
.top-nav-inner{
    max-width:640px;
    margin:0 auto;
    padding:8px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.nav-left,.nav-right{
    display:flex;
    align-items:center;
    gap:6px;
}
.nav-link{
    font-size:13px;
    padding:5px 10px;
    border-radius:999px;
    background:#f7f7f7;
    color:#555;
    cursor:pointer;
    white-space:nowrap;
    transition:background .2s,color .2s,transform .15s,box-shadow .15s;
}
.nav-link:hover{
    background:#ffe9da;
    color:#e65a00;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(0,0,0,0.06);
}
.nav-link.active{
    background:linear-gradient(135deg,#ff7a2a,#ff4e1a);
    color:#fff;
    box-shadow:0 6px 14px rgba(255,86,15,0.35);
}

.page{
    max-width:640px;
    margin:0 auto;
    padding:0 12px 40px;
}

.header{
    padding:16px 0 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.logo{
    width:52px;
    height:52px;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:8px;
    background:linear-gradient(135deg,#ff7a2a,#ffb347);
    display:flex;
    align-items:center;
    justify-content:center;
}
.logo img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.head-text{width:100%;}
.head-title{
    font-size:17px;
    font-weight:700;
    line-height:1.3;
}
.head-sub{
    font-size:12px;
    color:#888;
    margin-top:4px;
}
.tag-row{
    display:flex;
    gap:6px;
    margin-top:8px;
    flex-wrap:wrap;
    justify-content:center;
}
.tag{
    font-size:11px;
    padding:2px 7px;
    border-radius:999px;
    background:rgba(255,122,42,0.08);
    color:#ff7a2a;
    border:1px solid rgba(255,122,42,0.35);
    white-space:nowrap;
}

.hero-card{
    margin:6px 0 10px;
    padding:12px 12px 10px;
    background:linear-gradient(135deg,#ff7a2a,#ffb347);
    color:#fff;
    border-radius:12px;
}
.hero-title{
    font-size:17px;
    font-weight:700;
}
.hero-desc{
    font-size:13px;
    margin-top:6px;
    opacity:.96;
}
.hero-meta{
    display:flex;
    margin-top:8px;
    font-size:11px;
    gap:8px;
    flex-wrap:wrap;
}
.hero-meta span{
    padding:3px 8px;
    border-radius:999px;
    background:rgba(255,255,255,0.18);
}

.card{
    background:#fff;
    border-radius:12px;
    padding:12px;
    margin-top:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.03);
}
.card-hd{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
}
.card-hd h2{
    font-size:15px;
    font-weight:700;
}
.card-hd small{
    font-size:11px;
    color:#999;
}

.input-row{margin-top:4px;}
.ipt{
    width:100%;
    padding:10px 11px;
    font-size:14px;
    border-radius:10px;
    border:1px solid #e3e3e3;
    outline:none;
    transition:border .2s,box-shadow .2s,background .2s;
    background:#fafafa;
}
.ipt:focus{
    border-color:#ff7a2a;
    box-shadow:0 0 0 1px rgba(255,122,42,0.18);
    background:#fff;
}
.ipt-tip{
    margin-top:6px;
    font-size:12px;
    color:#999;
    line-height:1.5;
}

.pkg-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px;
    margin-top:4px;
}
@media (min-width:640px){
    .pkg-grid{grid-template-columns:repeat(4,1fr);}
}
.pkg{
    border-radius:10px;
    border:1px solid #f0f0f0;
    padding:14px 8px 8px; /* 上内边距加大，给角标留空间 */
    background:#fff;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:72px;
    transition:transform .18s,box-shadow .18s,border-color .18s,background .18s;
    position:relative;
    overflow:hidden;
}
.pkg:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(0,0,0,0.04);
    border-color:rgba(255,122,42,0.45);
}
.pkg.active{
    border-color:#ff7a2a;
    background:linear-gradient(135deg,#fff7f0,#ffffff);
    box-shadow:0 8px 18px rgba(255,122,42,0.18);
}
.pkg-amt{
    font-size:15px;
    font-weight:700;
}

/* 金额后面的营销文案改成右上角斜拉角标 */
.pkg-amt span{
    position:absolute;
    top:4px;
    right:-26px;
    font-size:10px;
    font-weight:600;
    letter-spacing:.5px;
    color:#fff;
    padding:3px 0;
    width:84px;
    text-align:center;
    background:linear-gradient(135deg,#ff7a2a,#ffb347);
    transform:rotate(38deg);
    transform-origin:50% 50%;
    box-shadow:0 4px 10px rgba(0,0,0,0.16);
    pointer-events:none;
}

.pkg-sub{
    font-size:11px;
    color:#999;
    margin-top:3px;
}
.pkg-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:5px;
}
.pkg-tags{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.pkg-gift{
    font-size:11px;
    color:#ff7a2a;
}
.pkg-coupon{
    font-size:11px;
    color:#e65a00;
}

/* 旧的 pkg-label 保持隐藏，避免冲突 */
.pkg-label{
    display:none;
}

.pkg-tips{
    margin-top:8px;
    font-size:11px;
    color:#999;
    line-height:1.5;
}
.coupon-row{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    font-size:11px;
    margin-top:6px;
}
.coupon-pill{
    padding:3px 7px;
    border-radius:999px;
    border:1px dashed rgba(255,122,42,0.6);
    color:#ff7a2a;
    background:rgba(255,122,42,0.04);
    white-space:nowrap;
}
.coupon-tools{
    display:flex;
    justify-content:flex-end;
    margin-top:8px;
}
.btn-coupon-get{
    font-size:12px;
    padding:5px 10px;
    border-radius:999px;
    border:1px solid #ff7a2a;
    background:#fff7f0;
    color:#e65a00;
    cursor:pointer;
    outline:none;
    transition:background .15s,box-shadow .15s,transform .15s;
}
.btn-coupon-get:hover{
    background:#ffe3cf;
    box-shadow:0 4px 10px rgba(255,122,42,0.25);
    transform:translateY(-1px);
}
.btn-coupon-get:active{
    transform:translateY(1px);
    box-shadow:0 2px 6px rgba(255,122,42,0.18);
}

.paylist{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.pay{
    flex:1;
    min-width:130px;
    display:flex;
    align-items:center;
    padding:8px 9px;
    border-radius:10px;
    border:1px solid #f0f0f0;
    background:#fafafa;
    cursor:pointer;
    transition:box-shadow .18s,border-color .18s,transform .18s,background .18s;
}
.pay:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(0,0,0,0.04);
    border-color:rgba(255,122,42,0.45);
}
.pay.active{
    border-color:#ff7a2a;
    background:#fff7f0;
    box-shadow:0 8px 18px rgba(255,122,42,0.18);
}
.pay-icon{
    width:26px;
    height:26px;
    border-radius:999px;
    margin-right:8px;
    overflow:hidden;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
}
.pay-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.pay-text{flex:1;}
.pay-name{
    font-size:14px;
    font-weight:600;
}
.pay-tip{
    font-size:11px;
    color:#999;
    margin-top:2px;
}

.order-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-top:4px;
}
.order-amount{
    font-size:12px;
    color:#666;
}
.order-amount strong{
    font-size:15px;
    color:#ff4e1a;
    margin-left:2px;
}
.btn-coupon-change{
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid #ffb347;
    background:#fff8f1;
    color:#e65a00;
    cursor:pointer;
    outline:none;
    white-space:nowrap;
    transition:background .15s,transform .15s,box-shadow .15s;
}
.btn-coupon-change:hover{
    background:#ffe5cf;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(255,122,42,0.2);
}
.btn-coupon-change:active{
    transform:translateY(1px);
    box-shadow:0 2px 6px rgba(255,122,42,0.15);
}

.btn-submit{
    border:none;
    outline:none;
    margin-top:10px;
    width:100%;
    padding:11px 20px;
    border-radius:999px;
    font-size:15px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(135deg,#ff7a2a,#ff4e1a);
    box-shadow:0 8px 18px rgba(255,86,15,0.4);
    cursor:pointer;
    white-space:nowrap;
    transition:transform .15s,box-shadow .15s,filter .15s;
}
.btn-submit:hover{
    transform:translateY(-1px);
    filter:brightness(1.03);
    box-shadow:0 10px 22px rgba(255,86,15,0.48);
}
.btn-submit:active{
    transform:translateY(1px) scale(.98);
    box-shadow:0 6px 14px rgba(255,86,15,0.3);
}

/* 提交按钮下面：改成只展示标题 + 点击查看 */
.seo-block{
    margin-top:10px;
    padding:14px 12px 12px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,0.02);
}
.seo-item{
    border-top:1px solid #f5f5f5;
    padding:8px 0 6px;
}
.seo-item:first-child{
    border-top:none;
    padding-top:0;
}
.seo-item-hd{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.seo-item-hd h2,
.seo-item-hd h3{
    margin:0;
}
.seo-block h2{
    font-size:15px;
    font-weight:700;
}
.seo-block h3{
    font-size:14px;
    font-weight:600;
}
.seo-toggle{
    flex-shrink:0;
    font-size:12px;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid #ffb347;
    background:#fffdf7;
    color:#e65a00;
    cursor:pointer;
}
.seo-toggle:hover{
    background:#ffe9cf;
}
.seo-body{
    display:none;
    margin-top:6px;
}
.seo-body.open{
    display:block;
}
.seo-body p{
    font-size:13px;
    line-height:1.8;
    color:#555;
    margin-bottom:6px;
    text-align:justify;
}
.seo-body ul{
    list-style:none;
    margin-top:4px;
    padding-left:2px;
}
.seo-body li{
    font-size:13px;
    line-height:1.8;
    color:#555;
    padding-left:14px;
    position:relative;
    text-align:justify;
}
.seo-body li:before{
    content:"·";
    position:absolute;
    left:3px;
    top:0;
}
.faq{margin-top:6px;}
.faq-item{
    border-top:1px solid #f2f2f2;
    padding:7px 0 5px;
}
.faq-q{
    font-size:13px;
    font-weight:600;
}
.faq-a{
    font-size:13px;
    color:#555;
    margin-top:4px;
    line-height:1.8;
    text-align:justify;
}

.toast{
    position:fixed;
    left:50%;
    bottom:70px;
    transform:translateX(-50%) translateY(120%);
    max-width:80%;
    background:rgba(0,0,0,0.8);
    color:#fff;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    line-height:1.5;
    z-index:50;
    opacity:0;
    transition:transform .35s,opacity .35s;
    pointer-events:none;
}
.toast.show{
    transform:translateX(-50%) translateY(0);
    opacity:1;
}
.toast strong{
    color:#ffe4b5;
}

.coupon-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:60;
}
.coupon-modal.show{
    display:flex;
}
.coupon-mask{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
}
.coupon-dialog{
    position:relative;
    width:86%;
    max-width:360px;
    background:#fff;
    border-radius:14px;
    padding:14px 14px 12px;
    box-shadow:0 12px 30px rgba(0,0,0,0.25);
    z-index:61;
}
.coupon-dialog-title{
    font-size:15px;
    font-weight:700;
    margin-bottom:8px;
}
.coupon-list{
    max-height:230px;
    overflow-y:auto;
    margin-bottom:8px;
}
.coupon-item{
    border-radius:10px;
    border:1px solid #ffe0c4;
    padding:7px 9px;
    margin-bottom:6px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    background:#fffaf5;
}
.coupon-item-info{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.coupon-item-main{
    color:#e65a00;
    font-weight:600;
}
.coupon-item-sub{
    color:#999;
}
.coupon-item-btn{
    font-size:12px;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid #ff7a2a;
    background:#fff;
    color:#e65a00;
    cursor:pointer;
    white-space:nowrap;
}
.coupon-foot{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:4px;
}
.btn-onekey{
    flex:1;
    font-size:13px;
    padding:7px 10px;
    border-radius:999px;
    border:none;
    background:linear-gradient(135deg,#ff7a2a,#ff4e1a);
    color:#fff;
    cursor:pointer;
}
.btn-close{
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid #ddd;
    background:#fff;
    color:#666;
    cursor:pointer;
    white-space:nowrap;
}

.footer-tip{
    margin:14px 0 4px;
    font-size:11px;
    color:#999;
    text-align:center;
    line-height:1.6;
}
.footer-icp{
    font-size:11px;
    color:#b3b3b3;
    text-align:center;
    margin-bottom:16px;
    line-height:1.6;
}
