html{scroll-behavior:smooth}
*{margin:0;padding:0;box-sizing:border-box;font-family:Microsoft YaHei,PingFang SC,sans-serif}
body{background:#f8f9ff;color:#333;line-height:1.7;padding-top:100px}
.header{background:#5528a8;padding:14px 0;position:fixed;top:0;left:0;width:100%;z-index:9999;box-shadow:0 2px 10px rgba(85,40,168,0.15)}
.container{max-width:1200px;margin:0 auto;padding:0 15px}
.nav{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.logo{font-size:18px;font-weight:bold;color:#fff}
.menu{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.menu a{color:#e9d8fd;text-decoration:none;font-size:15px;font-weight:500;transition:all 0.2s ease}
.menu a:hover,.menu a.active{color:#fff;background:#7b42d9;padding:4px 8px;border-radius:4px}

.main-container{max-width:900px;margin:0 auto 30px;background:#fff;padding:25px;border-radius:12px;box-shadow:0 4px 15px rgba(85,40,168,0.08)}
h1{font-size:24px;line-height:1.5;margin-bottom:20px;color:#5528a8;font-weight:600;text-align:center}
.price{color:#d92789;font-size:26px;font-weight:bold;margin:10px 0 25px;text-align:center}
.info{line-height:2.3;font-size:15px;color:#333;margin-bottom:30px;padding:0 10px}
.info strong{color:#5528a8;font-weight:bold}

.box{background:#f7f5ff;padding:20px;border-radius:12px;margin-bottom:20px}
.box h3{margin-bottom:12px;font-size:17px;color:#5528a8}
.box p{line-height:1.9;font-size:14px;color:#444;margin-bottom:8px}
#detailSection p{color:#d92789;font-weight:500;font-size:15px;line-height:2}

.pay-area{margin:30px 0}
.pay-title{font-size:18px;margin-bottom:18px;font-weight:bold;color:#5528a8}
.form-item{margin-bottom:20px}
.form-item label{display:block;margin-bottom:8px;font-size:15px;font-weight:500}
.form-item label .required{color:#d92789}
.form-item input{width:100%;padding:14px;border:1px solid #ddd;border-radius:10px;font-size:15px;outline:none}
.num-group{display:flex;align-items:center;margin-top:6px}
.num-group button{width:50px;height:46px;border:1px solid #ddd;background:#f5f5f5;font-size:18px;cursor:pointer;border-radius:8px}
.num-group input{width:70px;height:46px;text-align:center;border-left:none;border-right:none}

.pay-type{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}
.pay-type-item{border:1px solid #ddd;border-radius:10px;padding:14px 8px;text-align:center;cursor:pointer}
.pay-type-item.active{border-color:#5528a8;background:#f0eafc}
.pay-type-item .icon{width:40px;height:40px;margin:0 auto 6px}
.pay-type-item .icon img{width:100%;height:100%;object-fit:contain}
.pay-type-item .name{font-size:12px}

.now-pay-btn{width:100%;background:#5528a8;color:#fff;border:none;padding:16px;border-radius:12px;font-size:16px;font-weight:bold;margin-top:16px;cursor:pointer}
.now-pay-btn:hover{background:#7b42d9}
.total-price{font-size:17px;font-weight:bold;color:#d92789;margin:16px 0;text-align:center}

.recommend{margin-top:40px}
.recommend h3{font-size:18px;margin-bottom:16px;color:#5528a8}
.goods-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.goods-item{background:#fff;padding:16px;border-radius:12px;border:1px solid #eee;transition:0.2s}
.goods-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(85,40,168,0.08)}
.goods-item a{text-decoration:none;color:#333}
.goods-item .name{margin-bottom:8px;font-weight:500;font-size:15px}
.goods-item .price{color:#d92789;font-size:16px;margin-bottom:0}
.goods-item .tip{font-size:13px;color:#5528a8;margin-top:6px}

.footer{text-align:center;margin-top:30px;padding-top:20px;border-top:1px solid #eee;color:#999;font-size:14px}

.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:9999;display:none;align-items:center;justify-content:center;padding:10px}
.modal-box{width:100%;max-width:380px;background:#fff;border-radius:20px;overflow:hidden;position:relative}
.modal-scroll{padding:20px}
.modal-close{position:absolute;right:15px;top:15px;width:36px;height:36px;border-radius:50%;background:#f5f5f5;border:none;font-size:20px;cursor:pointer}
.modal-header{font-size:18px;font-weight:bold;text-align:center;margin-bottom:15px;color:#5528a8}
.countdown-box{background:#ffebee;padding:10px;border-radius:12px;text-align:center;margin-bottom:15px}
.countdown-title{color:#c62828;font-size:13px}
.countdown-time{color:#d32f2f;font-size:26px;font-weight:bold}
.order-price{font-size:20px;font-weight:bold;color:#d32f2f;text-align:center;margin-bottom:15px}
.order-detail{background:#f9f9f9;padding:15px;border-radius:12px;margin-bottom:15px}
.order-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eee}
.address-box{background:#f5f5f5;padding:12px;border-radius:10px;margin-bottom:15px;word-break:break-all}
.copy-btn{background:#5528a8;color:#fff;border:none;padding:10px 16px;border-radius:8px;cursor:pointer;width:100%}
.qr-code{width:180px;height:180px;margin:10px auto}

@media(min-width:768px){
.pay-type{grid-template-columns:repeat(4,1fr)}
.modal-box{max-width:460px}
.goods-list{grid-template-columns:repeat(3,1fr)}
body{padding-top:100px}
}
@media(max-width:576px){
.goods-list{grid-template-columns:1fr}
body{padding-top:130px !important;}
}