/* VIP页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 页面容器 */
.vip-page {
    min-height: 100vh;
    background: #f8f9fa;
}


/* 标签页区域 */
.vip-tabs-container {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.vip-tabs {
    display: flex;
    gap: 40px;
}

.vip-tab {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.vip-tab.active {
    color: #9E6DFC;
}

.vip-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #9E6DFC;
    border-radius: 2px;
}

.transaction-history-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    color: #9E6DFC;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主要内容区域 */
.vip-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 16px 24px 16px;
}

/* 内容背景容器 */
.content-background {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.vip-content {
    display: none;
}

.vip-content.active {
    display: block;
}

/* VIP横幅区域 */
.vip-banner {
    width: 402px;
    height: 110px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    padding: 14px 24px;
    gap: 24px;
    background: linear-gradient(105deg, #FF95DC 0%, #9355FF 100%);
    margin-bottom: 40px;
    color: white;
}

.vip-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    width: 100%;
    height: 100%;
}

.vip-banner-text {
    width: 258px;
    height: 82px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vip-banner-text .vip-icon-img {
    width: 25px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.vip-banner-text .vip-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-banner-text h1 {
    width: 32px;
    height: 29px;
    font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
}

.vip-banner-text h2 {
    font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    margin: 4px 0 0 0;
}

.vip-banner-text p {
    font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.7);
    margin: 2px 0 0 0;
}

.vip-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}


.vip-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
}

.vip-login-btn {
    background: #9E6DFC;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(158, 109, 252, 0.3);
    position: relative;
    margin-top: 50px;
}

.vip-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 109, 252, 0.4);
    background: #8B5CF6;
}

.login-icon-container {
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-login-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.login-text {
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* 会员卡片 */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
    gap: 16px;
    margin-bottom: 30px;
    justify-content: start;
}

.membership-card {
    background: white;
    border: 2px solid #666;
    border-radius: 15px;
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.membership-card.selected {
    border-color: #9E6DFC;
    box-shadow: 0 0 20px rgba(158, 109, 252, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 0px;
    width: 70px;
    height: 26px;
    background: linear-gradient(135deg, #FF95DC 0%, #9355FF 100%);
    border-radius: 8px 0px 8px 0px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.membership-duration {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.membership-price {
    font-size: 26px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
}

.membership-card.selected .membership-price {
    color: #9E6DFC;
}

.membership-card.selected .membership-savings {
    color: #28a745;
}

.membership-savings {
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

/* 我的币种 */
.my-coins {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.coins-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coins-amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9E6DFC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #7c3aed;
}

/* 币种包 */
.coin-packages {
    display: grid;
    grid-template-columns: repeat(4, 176px);
    gap: 20px;
    margin-bottom: 40px;
    justify-content: start;
}

.coin-package {
    background: white;
    border: 2px solid #666;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 176px;
    height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.coin-package:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coin-package.selected {
    border-color: #9E6DFC;
    box-shadow: 0 0 15px rgba(158, 109, 252, 0.2);
}

.coin-package.selected .coin-amount {
    color: #9E6DFC;
}

.coin-package.selected .coin-savings {
    color: #28a745;
}

.coin-amount {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.coin-savings {
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

/* 支付方式 */

.payment-options {
    display: flex;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.payment-option {
    width: 160px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option:hover {
    border-color: #9E6DFC;
}

.payment-option.selected {
    border-color: #9E6DFC;
    border-width: 2px;
    background: #FFFFFF;
}

.payment-option.selected::after {
    content: '✓';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    background: #9E6DFC;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 12px;
    border-radius: 0px 0px 2px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paypal-logo {
    text-align: center;
}

.paypal-logo img {
    height: 28px;
    display: block;
}


.credit-card {
    width: 70px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 0px 0px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 总价和充值按钮 */
.total-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.total-amount {
        margin-top: 30px;
    font-size: 24px;
    font-weight: 700;
}

.total-amount .label {
    color: #000;
}

.total-amount .value {
    color: #9E6DFC;
}

.recharge-btn {
    width: 200px;
    height: 48px;
    background: #9E6DFC;
    border-radius: 34px 34px 34px 34px;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(158, 109, 252, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 16px 0;
}

.recharge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(158, 109, 252, 0.4);
}

/* 提示信息 */
.tips-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tips-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tips-list {
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.5;
}

.tips-list strong {
    color: #9E6DFC;
    font-weight: 600;
}


/* 广告位样式 */
.advertisement-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
}

.advertisement-placeholder {
    width: 100%;
    height: 200px;
    border: 1px solid #000;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.advertisement-content {
    position: relative;
    z-index: 2;
}

.advertisement-text {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.advertisement-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.line {
    position: absolute;
    background: #000;
    height: 1px;
}

.line-1 {
    top: 50%;
    left: 0;
    right: 0;
    transform: rotate(45deg);
    transform-origin: center;
}

.line-2 {
    top: 50%;
    left: 0;
    right: 0;
    transform: rotate(-45deg);
    transform-origin: center;
}

.line-3 {
    top: 0;
    left: 50%;
    bottom: 0;
    width: 1px;
    transform: rotate(45deg);
    transform-origin: center;
}

.line-4 {
    top: 0;
    left: 50%;
    bottom: 0;
    width: 1px;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}


.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-tab.active {
    color: #9E6DFC;
    border-bottom-color: #9E6DFC;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.transaction-info p {
    font-size: 14px;
    color: #666;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

/* 移动端样式 */
@media (max-width: 768px) {
    
    .vip-tabs-container {
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        order: 4;
        width: 100%;
        position: relative;
    }
    
    .vip-tabs {
        gap: 20px;
        justify-content: center;
    }
    
    .my-coins {
        order: 5;
        width: 100%;
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .transaction-history-btn {
        display: flex;
        font-size: 14px;
        padding: 6px 12px;
        position: absolute;
        top: -10px;
        right: 0;
        order: -1;
    }
    
    .vip-main-content {
        padding:75px 0px;
        width: 100%;
        background: #f8f9fa;
    }
    
    .content-background {
        padding: 20px;
        border-radius: 0;
        background: white;
        margin: 0;
        width: 100%;
    }
    
    .vip-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 80px;
        padding: 10px 16px;
        position: static;
        left: auto;
        top: auto;
        margin: 0 auto 20px auto;
    }
    
    .vip-banner-content {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    .vip-banner-text {
        flex: 1;
        width: auto;
        max-width: none;
        height: auto;
        min-height: auto;
        position: static;
        left: auto;
        top: auto;
        gap: 2px;
    }
    
    .vip-banner-text .vip-title-row {
        justify-content: flex-start;
    }
    
    .vip-banner-text h1 {
        font-size: 18px;
        width: auto;
        height: auto;
    }
    
    .vip-banner-text h2 {
        font-size: 14px;
        font-weight: 600;
        margin-top: 2px;
    }
    
    .vip-banner-text p {
        font-size: 12px;
        margin-top: 1px;
    }
    
    
    .vip-right {
        align-self: center;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .vip-login-btn {
        margin-top: 30px;
        padding: 8px 16px;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .login-icon-container {
        top: -25px;
        width: 25px;
        height: 25px;
    }
    
    .user-login-icon {
        width: 25px;
        height: 25px;
    }
    
    .login-text {
        font-size: 10px;
    }
    
    .membership-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
        align-items: start;
        margin-top: 20px;
    }
    
    .membership-card {
        width: 100%;
        max-width: 160px;
        height: auto;
        min-height: 120px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .membership-duration {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .membership-price {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .membership-savings {
        font-size: 12px;
    }
    
    .popular-badge {
        width: 60px;
        height: 22px;
        font-size: 10px;
        top: -8px;
        right: 0px;
    }
    
    .coin-packages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
        align-items: start;
        padding: 0 10px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .coin-package {
        width: 100%;
        max-width: 150px;
        height: 80px;
        min-height: 80px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .coin-amount {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .coin-savings {
        font-size: 10px;
    }
    
    
    .payment-options {
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .payment-option {
        width: 140px;
        height: 50px;
        padding: 8px 12px;
        border-radius: 4px;
    }
    
    
    .credit-card {
        width: 60px;
        height: 35px;
    }
    
    .credit-card img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .recharge-btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .coin-packages {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        max-width: 100%;
    }
    
    .vip-banner-text h1 {
        font-size: 28px;
    }
    
    .vip-banner-text h2 {
        font-size: 16px;
    }
    
    .membership-price {
        font-size: 28px;
    }
    
    .total-amount {
        font-size: 24px;
    }
}