/* public/assets/css/vipcenter.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-3, .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.vip-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 230px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 0;
}

.header-section {
    position: relative;
    z-index: 1;
    padding: 20px 20px 0px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    object-fit: cover;
}

.username {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.vip-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.vip-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.wealth-display {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 15px 0;
    margin-top: 10px;
}

.wealth-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.wealth-item .value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-top: 6px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0px 10px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: linear-gradient(to bottom, #FFD700, #D4AF37);
    border-radius: 4px;
}

.section-header {
    display: flex;
    align-items: center;
    margin: 15px 20px 8px;
}

.tag-recommend, .tag-discount {
    background: linear-gradient(45deg, #FF0000, #FF4500);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

.privilege-section {
    background: white;
    border-radius: 12px;
    /*margin: 0 20px;*/
    padding: 8px 0 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.privilege-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 12px;
    justify-content: space-between;
}

.privilege-item {
    width: 33.33%;
    text-align: center;
    padding: 15px 0;
    box-sizing: border-box;
}

.privilege-emoji {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.privilege-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: block;
    padding: 0 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
}

.highlight .price {
    color: #e74c3c;
}

.recharge-section {
    background: white;
    border-radius: 12px;
    /*margin: 10px 0px 0;*/
    padding: 0 0 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.recharge-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 12px;
    justify-content: center;
}

.recharge-card {
    width: calc(24% - 10px);
    margin: 8px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.recharge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recharge-card.recommended {
    border-color: #FFD700;
    background: #FFF9E6;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.card-main {
    padding-bottom: 10px;
}

.card-main .amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
}

.card-main .gift {
    font-size: 14px;
    color: #e74c3c;
    display: block;
    margin-top: 4px;
}

.card-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #e0115f;
    color: white;
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 12px;
}

.cost-per {
    font-size: 12px;
    color: #666;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.faq-section {
    background: white;
    border-radius: 12px;
    /*margin: 10px 20px 0;*/
    padding: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.faq-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.question {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.answer {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.action-buttons {
    padding: 15px 20px 10px;
    text-align: center;
}

.action-btn {
    height: 44px;
    line-height: 44px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    padding: 0 30px;
    display: inline-block;
}

.action-btn:hover {
    transform: scale(0.98);
}

.primary {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: white !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border-radius: 20px;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

.contact-link {
    display: inline;
    color: #1a2a6c;
    text-decoration: underline;
    font-size: 14px;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.ad-free-tip {
    text-align: center;
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.vip-plans-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px;
    width: 90%;
    box-sizing: border-box;
}

.vip-plan-card {
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    align-items: center;
    min-width: 0; 
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vip-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vip-plan-card.selected {
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
     background: linear-gradient(135deg, #FFF9E6, #FFF0C2);
}

.vip-plan-card.highlight {
    background: linear-gradient(135deg, #FFF9E6, #FFF0C2);
    border-color: #FFD700;
}

.plan-header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-type {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-tag {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
    width: fit-content;
}

.price-section {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 10px 0;
    width: 100%;
    overflow: hidden;
}

.price {
    font-size: 20px; 
    font-weight: bold;
    color: #e74c3c;
    overflow: hidden;
    text-overflow: ellipsis;
}

.period {
    font-size: 14px;
    color: #666;
    margin-left: 6px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.save-percent {
    background: #FFEBEE;
    color: #e74c3c;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
    width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: linear-gradient(45deg, #FF0000, #FF4500);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(5deg);
    box-shadow: 0 3px 8px rgba(255, 69, 0, 0.3);
}

.purchase-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.selected-plan {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.selected-plan .price {
    font-size: 20px;
    margin-left: 10px;
    color: #e74c3c;
}

.purchase-btn {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: white;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 0 30px;
    transition: all 0.3s;
}

.purchase-btn:hover {
    transform: scale(0.98);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
}

.discount-note {
    color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.comparison-section {
    background: white;
    border-radius: 12px;
    /*padding: 15px;*/
    /*margin: 15px 20px;*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-top: 15px;
}

.table-row {
    display: flex;
}

.table-row.header {
    background: linear-gradient(135deg, #1a2a6c, #3a5fcb);
    color: white;
}

.table-row:nth-child(even) {
    background-color: #f9f9f9;
}

.table-cell {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-cell.first {
    flex: 1.5;
    text-align: left;
    justify-content: flex-start;
    font-weight: bold;
}

.table-cell.highlight {
    background: #FFF9E6;
    font-weight: bold;
    color: #e74c3c;
}

.table-row.header .table-cell {
    font-weight: bold;
    font-size: 14px;
}

.limited-offer {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-radius: 12px;
    margin: 15px 20px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(254, 180, 123, 0.4);
    position: relative;
    overflow: hidden;
}

.limited-offer::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.offer-content {
    position: relative;
    z-index: 2;
}

.limited-offer .title {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.limited-offer .subtitle {
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
}

.gift-box {
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 0 auto 15px;
    width: 60%;
}

.gift-box span {
    display: block;
    font-weight: bold;
}

.gift-box span:first-child {
    font-size: 28px;
}

.gift-box span:last-child {
    font-size: 16px;
}

.time-limit {
    font-size: 14px;
    display: block;
    margin-top: 8px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: white;
}

.modal-btn.cancel {
    background: #e0e0e0;
    color: #666;
}

/* 二维码支付弹窗样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.qr-modal-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    width: 90%;
    max-width: 320px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .vip-plans-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recharge-card {
        width: calc(50% - 8px);
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .table-row {
        flex-wrap: nowrap;
        min-width: 400px;
    }
    
    .header-bg {
        height: 200px;
    }
    
    .username {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
}