* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh; color: #333; line-height: 1.6;
}
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.site-header { text-align: center; padding: 30px 0; color: #fff; }
.site-header h1 { font-size: 28px; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.notice { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 20px; font-size: 14px; display: inline-block; }
.top-bar { text-align: right; margin-bottom: 20px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 14px; border: none; cursor: pointer; transition: all 0.3s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { display: block; width: 100%; padding: 14px; font-size: 16px; }
.cat-block { margin-bottom: 30px; }
.cat-title { color: #fff; font-size: 18px; margin-bottom: 15px; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
.goods-card { background: #fff; border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.goods-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.goods-desc { font-size: 13px; color: #888; margin-bottom: 15px; }
.goods-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.price { font-size: 20px; font-weight: 700; color: #ff4d4f; }
.buy-text { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; }
.form-page, .pay-page, .result-page { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.back-link { display: inline-block; margin-bottom: 20px; color: #667eea; text-decoration: none; font-size: 14px; }
.page-title { margin-bottom: 20px; font-size: 22px; }
.goods-detail { background: #f8f9ff; border-radius: 10px; padding: 20px; margin-bottom: 25px; }
.goods-detail h2 { font-size: 18px; margin-bottom: 10px; }
.goods-detail .desc { font-size: 14px; color: #666; margin-bottom: 15px; }
.amount { font-size: 16px; }
.price-big { font-size: 24px; font-weight: 700; color: #ff4d4f; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.req { color: #ff4d4f; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; outline: none; }
.error-box { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.pay-info { text-align: center; margin-bottom: 25px; }
.pay-info h2 { font-size: 18px; margin-bottom: 8px; }
.pay-info p { color: #666; font-size: 14px; }
.pay-amount { font-size: 22px !important; color: #ff4d4f !important; font-weight: 700; }
.qr-box { text-align: center; padding: 25px; background: #f8f9ff; border-radius: 12px; margin-bottom: 20px; }
.qr-tip { font-size: 16px; margin-bottom: 15px; }
#qrcode { display: flex; justify-content: center; margin-bottom: 15px; }
#qrcode img, #qrcode canvas { border-radius: 8px; }
.pay-wait { font-size: 15px; color: #faad14; margin-bottom: 8px; }
.pay-ok { font-size: 15px; color: #52c41a; margin-bottom: 8px; }
.pay-hint { font-size: 13px; color: #999; }
.pay-actions { display: flex; justify-content: center; gap: 10px; }
.result-box { text-align: center; padding: 40px 20px; }
.result-icon { font-size: 60px; margin-bottom: 15px; }
.result-box h2 { font-size: 22px; margin-bottom: 15px; }
.order-info { background: #f8f9ff; border-radius: 10px; padding: 20px; margin: 20px 0; text-align: left; }
.order-info p { margin-bottom: 8px; font-size: 14px; color: #555; }
.card-box { background: #f6ffed; border: 2px dashed #b7eb8f; border-radius: 10px; padding: 20px; margin: 20px 0; }
.card-label { font-size: 14px; color: #52c41a; font-weight: 600; margin-bottom: 10px; }
.card-box textarea { width: 100%; min-height: 80px; padding: 12px; border: 1px solid #d9f7be; border-radius: 6px; font-size: 15px; font-family: monospace; background: #fff; resize: none; outline: none; line-height: 1.6; }
.btn-copy { margin-top: 12px; background: linear-gradient(135deg, #52c41a, #73d13d); }
.st { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.st-wait { background: #fff7e6; color: #fa8c16; }
.st-process { background: #e6f7ff; color: #1890ff; }
.st-ok { background: #f6ffed; color: #52c41a; }
.loading { display: flex; justify-content: center; gap: 8px; margin: 15px 0; }
.loading span { width: 10px; height: 10px; background: #667eea; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.loading span:nth-child(1) { animation-delay: -0.32s; }
.loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }
.empty-box { text-align: center; padding: 60px 20px; color: #fff; background: rgba(255,255,255,0.1); border-radius: 12px; font-size: 16px; }
.site-footer { text-align: center; padding: 30px 0; color: rgba(255,255,255,0.7); font-size: 13px; }
.pending-box { padding: 20px; }
@media (max-width: 600px) { .container { padding: 10px; } .goods-grid { grid-template-columns: 1fr; } .site-header h1 { font-size: 22px; } .form-page, .pay-page, .result-page { padding: 20px; } }
