/* 充值页面样式 */

.recharge-container {
    max-width: 1200px; /* 增加页面宽度 */
    margin: 0 auto;
    padding: 20px;
}

/* 用户信息区域 */
.user-info-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c00 100%); /* 橙色主题 */
    border-radius: 15px;
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    margin-right: 20px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.vip-status {
    font-size: 16px;
    opacity: 0.9;
}

.vip-status.active {
    color: #FFD700;
    font-weight: bold;
}

/* 会员权益展示 */
.vip-benefits-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.vip-benefits-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-left: 4px solid #ff6b35; /* 橙色主题 */
    padding-left: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6b35; /* 橙色主题 */
    border-radius: 50%;
    color: white;
}

.benefit-text h4 {
    margin-bottom: 5px;
    color: #333;
}

.benefit-text p {
    font-size: 14px;
    color: #666;
}

/* 会员套餐选择 */
.vip-packages-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.vip-packages-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-left: 4px solid #ff6b35; /* 橙色主题 */
    padding-left: 10px;
}

.packages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.package-item {
    flex: 0 0 31%;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 25px 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background-color: #fff;
}

.package-item:hover {
    border-color: #ff6b35; /* 橙色主题 */
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2); /* 橙色主题 */
}

.package-item.selected {
    border-color: #ff6b35; /* 橙色主题 */
    background-color: rgba(255, 107, 53, 0.05); /* 橙色主题 */
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4); /* 橙色主题 */
    transform: translateY(-5px);
}

.recommended-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); /* 橙色主题 */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.package-header {
    margin-bottom: 15px;
}

.package-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b35; /* 橙色主题 */
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-top: 5px;
}

.package-duration {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.package-features li:before {
    content: "✓";
    color: #ff6b35; /* 橙色主题 */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.select-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c00 100%); /* 橙色主题 */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4); /* 橙色主题 */
}

/* 支付方式 */
.payment-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.payment-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    border-left: 4px solid #ff6b35; /* 橙色主题 */
    padding-left: 10px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.payment-method:hover {
    background-color: #e9ecef;
}

.payment-method.active {
    background-color: #fff;
    border-color: #ff6b35; /* 橙色主题 */
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2); /* 橙色主题 */
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.payment-method.disabled:hover {
    background-color: #f8f9fa;
}

.payment-method.disabled::after {
    content: "敬请期待";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.payment-method span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* 自动续费 */
.auto-renew {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.auto-renew-desc {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center !important;
}

/* 协议 */
.agreement {
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.agreement .checkbox-container {
    margin-right: 10px;
}

.agreement a {
    color: #ff6b35; /* 橙色主题 */
    text-decoration: none;
    margin: 0 5px;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 支付按钮 */
.pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c00 100%); /* 橙色主题 */
    color: white;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4); /* 橙色主题 */
}

.pay-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    position: relative;
    padding-left: 30px;
    user-select: none;
    text-align: left;
    margin: 0 auto;
    max-width: fit-content;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    top: 50%;
    transform: translateY(-50%);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #ff6b35; /* 橙色主题 */
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #ff6b35; /* 橙色主题 */
    border-color: #ff6b35; /* 橙色主题 */
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recharge-container {
        padding: 15px;
    }
    
    .user-info-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-list {
        flex-direction: column;
        align-items: center;
    }
    
    .package-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-method {
        max-width: 100%;
        width: 100%;
    }
    
    .checkbox-container {
        justify-content: center;
        max-width: 100%;
    }
}