/* VIP升级页面专用样式 */

/* 独立页面容器 */
.vip-upgrade-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.vip-upgrade-content {
    width: 100%;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--theme-color, #ff1493);
}

.page-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* 升级步骤 */
.upgrade-step {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.step-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.step-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* VIP套餐价格表 */
.vip-packages-table {
    margin-bottom: 15px;
    overflow-x: auto;
}

.packages-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.packages-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.packages-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
    color: #666;
}

.packages-table tbody tr:last-child td {
    border-bottom: none;
}

.packages-table tbody tr:hover {
    background: #f8f9fa;
}

/* 警告文字 */
.warning-text {
    color: var(--theme-color, #ff1493);
    font-size: 14px;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* 购买按钮组 */
.buy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--theme-color, #ff1493), var(--theme-color-light, #ff69b4));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(var(--theme-color-rgb, 255, 20, 147), 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb, 255, 20, 147), 0.4);
    background: linear-gradient(135deg, var(--theme-color-dark, #e91e63), var(--theme-color, #ff1493));
}

/* 联系信息 */
.contact-info {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

.highlight {
    color: var(--theme-color, #ff1493);
    font-weight: 600;
}

/* 升级表单 */
.upgrade-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.upgrade-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.upgrade-input:focus {
    outline: none;
    border-color: var(--theme-color, #ff1493);
    box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb, 255, 20, 147), 0.1);
}

.upgrade-input::placeholder {
    color: #999;
}

.upgrade-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--theme-color, #ff1493), var(--theme-color-light, #ff69b4));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(var(--theme-color-rgb, 255, 20, 147), 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb, 255, 20, 147), 0.4);
    background: linear-gradient(135deg, var(--theme-color-dark, #e91e63), var(--theme-color, #ff1493));
}

.upgrade-btn:active {
    transform: translateY(0);
}

/* 常见问题 */
.faq-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.section-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

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

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

.faq-question {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.faq-answer {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 底部积分兑换区域 */
.bottom-buy-section {
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* 用户积分显示 */
.user-points-display {
    background: linear-gradient(135deg, #fff5f7, #ffe8f0);
    border: 2px solid var(--theme-color, #ff1493);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

.points-label {
    color: #666;
    font-weight: 500;
}

.points-value {
    color: var(--theme-color, #ff1493);
    font-size: 28px;
    font-weight: 700;
    margin: 0 8px;
}

.points-unit {
    color: #666;
    font-weight: 500;
}

/* 积分兑换按钮组 */
.points-exchange-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exchange-btn {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.exchange-btn:active {
    transform: translateY(0);
}

.exchange-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.exchange-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 购买按钮组 */
.purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.purchase-btn {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--theme-color, #ff1493), var(--theme-color-light, #ff69b4));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(var(--theme-color-rgb, 255, 20, 147), 0.3);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb, 255, 20, 147), 0.4);
    background: linear-gradient(135deg, var(--theme-color-light, #ff69b4), var(--theme-color, #ff1493));
}

.purchase-btn:active {
    transform: translateY(0);
}

/* 兑换码输入区域 */
.redeem-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.code-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-input:focus {
    outline: none;
    border-color: var(--theme-color, #ff1493);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb, 255, 20, 147), 0.1);
}

.code-input::placeholder {
    color: #999;
    text-transform: none;
    letter-spacing: normal;
}

.redeem-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
}

.redeem-btn:active {
    transform: translateY(0);
}

.redeem-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .vip-upgrade-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .vip-upgrade-content {
        padding: 20px 15px;
    }
    
    .page-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .page-header h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .upgrade-step,
    .faq-section,
    .bottom-buy-section {
        padding: 15px;
    }
    
    .step-title,
    .section-title {
        font-size: 15px;
    }
    
    .packages-table {
        font-size: 13px;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 10px 8px;
    }
    
    .buy-buttons {
        gap: 8px;
    }
    
    .buy-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .user-points-display {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .points-value {
        font-size: 24px;
    }
    
    .points-exchange-buttons,
    .purchase-buttons {
        gap: 8px;
    }
    
    .exchange-btn,
    .purchase-btn {
        font-size: 13px;
        padding: 10px 16px;
        min-width: 180px;
    }
    
    .upgrade-form,
    .redeem-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .code-input {
        min-width: 100%;
    }
    
    .redeem-btn {
        width: 100%;
    }
    
    .upgrade-input {
        min-width: 100%;
    }
    
    .upgrade-btn {
        width: 100%;
    }
    
    .faq-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .faq-question {
        font-size: 13px;
    }
    
    .faq-answer {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    /* 表格转为卡片模式 */
    .packages-table thead {
        display: none;
    }
    
    .packages-table,
    .packages-table tbody,
    .packages-table tr,
    .packages-table td {
        display: block;
        width: 100%;
    }
    
    .packages-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 15px;
        background: #fff;
    }
    
    .packages-table td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 80px;
        min-height: 30px;
    }
    
    .packages-table td:not(:last-child) {
        border-bottom: 1px solid #f5f5f5;
    }
    
    .packages-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 70px;
        font-weight: 600;
        color: #333;
        font-size: 13px;
    }
    
    .buy-buttons {
        flex-direction: column;
    }
    
    .buy-btn {
        width: 100%;
        text-align: center;
    }
    
    .user-points-display {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .points-value {
        font-size: 22px;
    }
    
    .points-exchange-buttons,
    .purchase-buttons {
        flex-direction: column;
    }
    
    .exchange-btn,
    .purchase-btn {
        width: 100%;
        min-width: 100%;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .vip-upgrade-container {
        margin: 5px auto;
        padding: 0 5px;
    }
    
    .vip-upgrade-content {
        padding: 15px 10px;
        border-radius: 6px;
    }
    
    .page-header h2 {
        font-size: 16px;
    }
    
    .upgrade-step,
    .faq-section,
    .bottom-buy-section {
        padding: 12px;
    }
    
    .packages-table tr {
        padding: 12px;
    }
    
    .packages-table td {
        padding: 6px 0;
        padding-left: 70px;
        font-size: 12px;
    }
    
    .packages-table td:before {
        width: 60px;
        font-size: 12px;
    }
    
    .buy-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .upgrade-input,
    .upgrade-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}
