/* 价格页面样式 */
.pricing-header {
    text-align: center;
    padding: 2rem 0;
}

.pricing-section-title {
    text-align: center;
    margin: 2rem 0 0.5rem;
    font-size: 1.6rem;
}

.pricing-section-note {
    text-align: center;
    color: #666;
    margin: 0 1rem 1rem;
}

.price-currency {
    margin-left: 0.35rem;
    color: #888;
    font-size: 0.95rem;
}

.gem-packs-container .gem-card {
    flex: 1 1 260px;
    width: auto;
    max-width: 340px;
    min-width: 200px;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* 修改了这一行 */
    gap: 1rem; /* 修改了这一行 */
    padding: 1rem;
    max-width: 1200px; /* 新增 */
    margin: 0 auto; /* 新增 */
}

.membership-plans {
    max-width: 1080px;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem; /* 修改了这一行 */
    width: 23%; /* 完全替换了原来的280px */
    min-width: 250px; /* 新增 */
    position: relative;
    transition: transform 0.3s;
    box-sizing: border-box; /* 新增 */
    margin-bottom: 1.5rem; /* 新增 */
}

.membership-plans .pricing-card {
    flex: 1 1 260px;
    width: auto;
    min-width: 0;
    max-width: 340px;
    padding: 1.15rem 0.85rem;
    margin-bottom: 0;
}

.membership-plans .card-header h3 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.membership-plans .price {
    font-size: 1.55rem;
}

.membership-plans .features li {
    font-size: 0.88rem;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid #4CAF50;
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.feature-check {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.active-membership {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.card-price {
    margin: 1.5rem 0;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 0.5rem;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #45a049;
}

.renew-btn {
    background: #2196F3;
}

.renew-btn:hover {
    background: #0b7dda;
}

.upgrade-btn {
    background: #FF9800;
}

.upgrade-btn:hover {
    background: #e68a00;
}

.downgrade-btn {
    background: #9E9E9E;
}

.downgrade-btn:hover {
    background: #757575;
}

.features {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* 支付弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 350px;
    max-width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.qrcode-container {
    text-align: center;
    margin: 1rem 0;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
}

.payment-notice {
    text-align: center;
    font-weight: bold;
    margin: 1rem 0;
}

.payment-agreement {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.currency-selector {
    text-align: center;
    margin: 1rem 0;
}

.currency-selector select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 20250601*/
/* 支付弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 350px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.qrcode-wrapper {
    text-align: center;
    margin: 15px 0;
}

.qrcode-wrapper img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
}

.payment-info {
    margin-bottom: 15px;
}

.payment-notice {
    text-align: center;
    color: #666;
    margin: 15px 0;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.renewal-notice {
    font-size: 0.85em;  /* 比正常字体小一些 */
    line-height: 1.3;   /* 紧凑的行高 */
    color: #666;        /* 使用较浅的颜色 */
    margin-top: 0.5em;  /* 适当的上边距 */
    margin-bottom: 0.5em; /* 适当的下边距 */
}

/* 微信支付图标样式 */
.wechat-pay-icon {
    width: 20px;  /* 根据实际需要调整大小 */
    height: 20px;
    vertical-align: middle;  /* 使图标与文字垂直居中 */
    margin-right: 8px;  /* 图标与文字之间的间距 */
}

/* 新增的媒体查询部分 */
@media (max-width: 1200px) {
    .pricing-card {
        width: 48%;
    }
    .gem-packs-container .gem-card {
        flex: 1 1 30%;
        width: auto;
        max-width: 48%;
    }
    .membership-plans {
        flex-wrap: wrap;
        max-width: 1200px;
    }
    .membership-plans .pricing-card {
        flex: 1 1 30%;
        min-width: 200px;
        max-width: 48%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .pricing-card {
        width: 100%;
    }
    .membership-plans {
        flex-wrap: wrap;
    }
    .membership-plans .pricing-card {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}