/* Home Theme Styles - VIP Buy Page (Enhanced) */
:root {
    --home-primary: #6366f1;
    --home-primary-dark: #4338ca;
    --home-primary-light: #a5b4fc;
    --home-accent: #f59e0b;
    --home-danger: #ef4444;
    --home-success: #10b981;
    --home-bg: #f8fafc;
    --home-bg-card: #ffffff;
    --home-bg-dark: #f0f4ff;
    --home-bg-section: #f1f5f9;
    --home-text-primary: #1e293b;
    --home-text-secondary: #64748b;
    --home-text-light: #94a3b8;
    --home-border: #e2e8f0;
    --home-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --home-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --home-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --home-radius: 12px;
    --home-radius-lg: 16px;
    --home-radius-xl: 24px;
    --home-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DataRecovery 产品主题 - 绿色系 */
[data-theme="datarecovery"] {
    --home-primary: #10b981;
    --home-primary-dark: #059669;
    --home-primary-light: #34d399;
    --home-bg-gradient-1: #ecfdf5;
    --home-bg-gradient-2: #d1fae5;
    --home-bg-gradient-3: #a7f3d0;
    --home-active-bg: linear-gradient(179deg, #ecfdf5 0%, #d1fae5 44%, #a7f3d0 100%);
}

/* ========== 顶部横幅区域 ========== */
.home-payment-top {
    background: linear-gradient(135deg, var(--home-primary), var(--home-primary-dark));
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    margin-top:90px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.home-payment-top img {
    height: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.home-payment-top span {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========== 主体容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== VIP 卡片布局 ========== */
.home-vip-model {
    display: flex;
    background: var(--home-bg-card);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    overflow: hidden;
    margin: 0 0 60px;
    box-shadow: var(--home-shadow-xl);
    transition: var(--home-transition);
}

.home-vip-model:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* ========== 左侧用户信息区 ========== */
.home-vip-left {
    width: 300px;
    padding: 48px 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--home-bg-gradient-1, #faf5ff), var(--home-bg-gradient-2, #f5f3ff));
    border-right: 1px solid var(--home-border);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-vip-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-vip-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.home-vip-left .v-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--home-primary-light);
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 4px;
}

.home-vip-left .v-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--home-text-primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--home-primary), var(--home-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-vip-left .vip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-primary-dark));
    color: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    position: relative;
    z-index: 1;
}

.home-vip-left .vip-status-text {
    font-size: 0.8125rem;
    color: var(--home-text-secondary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.home-vip-left .vip-status-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-primary);
    position: relative;
    z-index: 1;
}

.home-vip-left .vip-interest {
    text-align: left;
    font-size: 0.875rem;
    color: var(--home-text-secondary);
    line-height: 2.4;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: 24px 20px;
    border-radius: var(--home-radius-lg);
    border: 1px solid rgba(99,102,241,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.home-vip-left .vip-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--home-primary);
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-vip-left .vip-interest p {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--home-transition);
}

.home-vip-left .vip-interest p:hover {
    transform: translateX(4px);
    color: var(--home-primary);
}

/* ========== 右侧套餐选择区 ========== */
.home-vip-right {
    flex: 1;
    padding: 40px;
    background: var(--home-bg-card);
}

/* 广告横幅 */
.home-vip-banner {
    width: 100%;
    height: 80px;
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--home-shadow);
    transition: var(--home-transition);
}

.home-vip-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-lg);
}

.home-vip-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 套餐列表 */
.home-vip-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.home-vip-item {
    border: 2px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    text-align: center;
    cursor: pointer;
    padding: 24px 16px 52px;
    transition: var(--home-transition);
    position: relative;
    background: var(--home-bg-card);
    overflow: hidden;
}

.home-vip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-primary-light));
    opacity: 0;
    transition: var(--home-transition);
}

.home-vip-item:hover {
    border-color: var(--home-primary-light);
    box-shadow: var(--home-shadow-lg);
    transform: translateY(-4px);
}

.home-vip-item:hover::before {
    opacity: 1;
}

.home-vip-item.active {
    background: var(--home-active-bg, linear-gradient(179deg, #faf5ff 0%, #f5f3ff 44%, #ede9fe 100%));
    border-color: var(--home-primary);
    box-shadow: 0 8px 24px rgba(99,102,241,0.25);
    transform: translateY(-4px);
}

.home-vip-item.active::before {
    opacity: 1;
}

/* 超级会员标签 */
.home-vip-item .super-vip {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--home-primary), #8b5cf6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 0 0 12px 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    z-index: 2;
}

/* 套餐名称 */
.home-vip-item .vip-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-top: 8px;
    color: var(--home-text-primary);
}

/* 价格 */
.home-vip-item .vip-price {
    font-size: 0.875rem;
    color: var(--home-text-secondary);
}

.home-vip-item .price-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--home-danger);
    font-family: 'Arial', sans-serif;
}

/* 套餐描述 */
.home-vip-item .vip-desc {
    font-size: 0.8125rem;
    color: var(--home-text-light);
    margin-top: 12px;
}

.home-vip-item .vip-desc.vip-red {
    color: var(--home-danger);
    font-weight: 700;
    font-size: 0.875rem;
}

.home-vip-item i {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    color: var(--home-text-light);
    font-style: normal;
}

/* 温馨提示 */
.home-vip-tips {
    color: var(--home-text-light);
    font-size: 0.875rem;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--home-bg-section);
    border-radius: var(--home-radius);
    border-left: 4px solid var(--home-primary);
}

/* ========== 支付区域 ========== */
.home-pay-section {
    background: linear-gradient(135deg, var(--home-bg-section), var(--home-bg-card));
    border: 2px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    padding: 32px;
    margin-top: 32px;
}

.home-pay-line {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--home-text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.home-pay-money {
    color: var(--home-danger);
    font-size: 2rem;
    font-weight: 900;
    margin: 0 8px;
}

.home-pay-cont {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

/* 二维码区域 */
.home-pay-qr {
    background: #fff;
    padding: 24px;
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow-lg);
    border: 2px solid var(--home-border);
    min-width: 250px;
    text-align: center;
}

/* 支付说明 */
.home-pay-desc {
    flex: 1;
    min-width: 280px;
    background: var(--home-bg-card);
    padding: 24px;
    border-radius: var(--home-radius-lg);
    border: 1px solid var(--home-border);
}

.home-pay-desc div {
    font-size: 0.9375rem;
    color: var(--home-text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.home-pay-desc div:last-child {
    margin-bottom: 0;
}

.home-pay-desc span {
    color: var(--home-primary);
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(99,102,241,0.08);
    border-radius: 4px;
}

/* 支付协议 */
.home-pay-agreement {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--home-border);
    font-size: 0.875rem;
    color: var(--home-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-pay-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.home-pay-agreement a {
    color: var(--home-primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.home-pay-agreement a:hover {
    text-decoration: underline;
}

/* ========== 支付成功弹窗 ========== */
.home-pay-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--home-transition);
}

.home-pay-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.home-pay-success-card {
    background: #fff;
    border-radius: var(--home-radius-xl);
    padding: 48px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(0.9);
    transition: var(--home-transition);
}

.home-pay-success-overlay.show .home-pay-success-card {
    transform: scale(1);
}

.home-pay-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--home-success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

.home-pay-success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.home-pay-success-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-text-primary);
    margin-bottom: 12px;
}

.home-pay-success-card p {
    font-size: 1rem;
    color: var(--home-text-secondary);
    margin-bottom: 32px;
}

.home-pay-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--home-primary), var(--home-primary-dark));
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--home-radius-lg);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--home-transition);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    text-decoration: none;
}

.home-pay-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.4);
}

/* ========== 协议弹窗 ========== */
.home-agreement-modal .modal-content {
    border-radius: var(--home-radius-xl);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.home-agreement-modal .modal-header {
    border-bottom: 2px solid var(--home-border);
    padding: 24px 32px;
}

.home-agreement-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--home-text-primary);
}

.home-agreement-modal .modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--home-text-secondary);
}

.home-agreement-modal .modal-body p {
    margin-bottom: 16px;
}

.home-agreement-modal .modal-body .font-600 {
    font-weight: 700;
    color: var(--home-text-primary);
    font-size: 1.0625rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.home-agreement-modal .modal-footer {
    border-top: 1px solid var(--home-border);
    padding: 20px 32px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 991.98px) {
    .home-vip-model {
        flex-direction: column;
    }

    .home-vip-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--home-border);
        padding: 32px 24px;
        order: 2; /* 在移动端显示在下方 */
    }

    .home-vip-right {
        padding: 32px 24px;
        order: 1; /* 在移动端显示在上方 */
    }
}

@media (max-width: 767.98px) {
    .home-payment-top {
        padding: 32px 16px;
    }

    .home-payment-top img {
        height: 48px;
    }

    .home-payment-top span {
        font-size: 1.5rem;
    }

    .home-vip-list {
        grid-template-columns: 1fr;
    }

    .home-pay-cont {
        flex-direction: column;
        align-items: center;
    }

    .home-pay-qr {
        width: 100%;
        max-width: 320px;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-vip-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.home-vip-item:nth-child(1) { animation-delay: 0.1s; }
.home-vip-item:nth-child(2) { animation-delay: 0.2s; }
.home-vip-item:nth-child(3) { animation-delay: 0.3s; }
.home-vip-item:nth-child(4) { animation-delay: 0.4s; }

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* 会员特权图标样式 */
.vip-feature-icon {
    font-size: 2rem;
    color: var(--home-primary);
    margin-bottom: 12px;
}

.vip-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--home-text-primary);
    margin-bottom: 8px;
}

.vip-feature-desc {
    font-size: 0.875rem;
    color: var(--home-text-secondary);
    line-height: 1.6;
}
