* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}
.upgrade-btn {
    background-color: #2196F3;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}
.upgrade-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    width: 90%;
    max-width: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}
.modal-header {
    background-color: #2196F3;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    position: relative;
}
.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.payment-status {
    display: none;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    width: 80%;
}
.payment-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.payment-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
#qrcode {
    width: 200px;
    height: 200px;
    margin: 15px 0;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-qr {
    color: #2196F3;
    font-size: 14px;
}
.pay-btn {
    background-color: #4CAF50; /* 改为绿色 */
    color: white;
    width: 70%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px 0;
    cursor: default; /* 默认移除点击手势 */
    transition: all 0.3s ease;
    text-align: center; /* 添加文字居中 */
}

/* 微信环境下隐藏二维码 */
.wechat-browser #qrcode {
    display: none;
}
.pay-btn.wechat-pay {
    cursor: pointer; /* 微信浏览器中显示点击手势 */
}
.pay-btn:hover {
    background-color: #45a049; /* 绿色的hover状态 */
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}
.price-info {
    margin-top: 15px;
    text-align: center;
}
.special-price {
    color: #ff6600;
    font-weight: bold;
    font-size: 18px;
    margin-left: -10px; 
}
.original-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}