/* ========================================================
   外挂猫开窍系统 - 会员体系样式
   VIP Module Styles
   ======================================================== */

/* ========== VIP页面通用 ========== */
.vip-page {
    display: none;
    animation: fadeIn 0.3s ease;
    padding-bottom: 40px;
}
.vip-page.active {
    display: block;
}

/* ========== 会员中心页 ========== */
#vip-center-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.vip-page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vip-page-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: white;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.vip-page-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-right: 32px;
}

/* 会员状态卡片 */
.vip-status-card {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.vip-card-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vip-card-header.vip-member {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a1d6e 50%, #6b2d8e 100%);
    position: relative;
}

.vip-card-header.vip-member::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.vip-card-header.vip-free {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.vip-crown, .vip-lock {
    font-size: 48px;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,0.3));
}

.vip-status-text {
    flex: 1;
}

.vip-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #ffd700, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-card-header.vip-free .vip-title {
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

/* 会员权益列表 */
.vip-benefits-section {
    margin: 0 16px 16px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vip-benefits-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.vip-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.vip-benefit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.vip-benefit.locked .vip-benefit-icon {
    filter: grayscale(0.6);
    opacity: 0.6;
}

.vip-benefit-info {
    flex: 1;
    min-width: 0;
}

.vip-benefit-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.vip-benefit.locked .vip-benefit-name {
    color: #999;
}

.vip-benefit-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.vip-benefit.locked .vip-benefit-desc {
    color: #bbb;
}

.vip-benefit-check {
    font-size: 16px;
    font-weight: 700;
    color: #52c41a;
    flex-shrink: 0;
}

.vip-benefit.locked .vip-benefit-check {
    color: #ccc;
    font-size: 14px;
}

/* 套餐选择区 */
.vip-plans-section {
    margin: 0 16px 16px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vip-plans-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.vip-plans-container {
    display: flex;
    gap: 10px;
}

.vip-plan-card {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: #fafafa;
}

.vip-plan-card:active {
    transform: scale(0.97);
}

.vip-plan-card.selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fffbe6 0%, #fff7d6 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.2);
}

.vip-plan-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.vip-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.vip-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.vip-price-symbol {
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
}

.vip-price-num {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.vip-price-unit {
    font-size: 11px;
    color: #999;
}

.vip-plan-card.selected .vip-price-symbol,
.vip-plan-card.selected .vip-price-num {
    color: #d48806;
}

.vip-plan-original {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-top: 4px;
}

.vip-first-deal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 6px;
    font-weight: 500;
}

/* 开通按钮 */
.vip-open-btn-wrap {
    margin: 0 16px 16px;
}

.vip-open-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,149,0,0.3);
    transition: all 0.2s;
}

.vip-open-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(255,149,0,0.3);
}

/* 支付方式图标 */
.vip-pay-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vip-pay-icon {
    font-size: 20px;
}

/* 底部链接 */
.vip-footer-links {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 16px;
    line-height: 2;
}

.vip-footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 8px;
}

.vip-footer-links .divider {
    color: #ddd;
}

.vip-cs-wechat {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
}

/* 订阅管理入口 */
.vip-sub-entry {
    margin: 0 16px 16px;
    background: white;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.vip-sub-entry:active {
    background: #f5f5f5;
}

.vip-sub-entry-icon {
    font-size: 20px;
    margin-right: 10px;
}

.vip-sub-entry-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.vip-sub-entry-arrow {
    color: #ccc;
    font-size: 18px;
}

/* ========== 支付确认页 ========== */
#pay-confirm-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.pay-confirm-content {
    padding: 16px;
}

.pay-confirm-product {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pay-product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border-radius: 12px;
    font-size: 24px;
}

.pay-product-info {
    flex: 1;
}

.pay-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.pay-product-desc {
    font-size: 12px;
    color: #888;
}

.pay-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.pay-discount-row {
    background: white;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pay-discount-amount {
    color: #52c41a;
    font-weight: 600;
}

/* 支付方式 */
.pay-method-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pay-method-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.pay-method-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pay-method-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.pay-method-icon {
    font-size: 22px;
    margin-right: 10px;
}

.pay-method-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.pay-method-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52c41a;
    font-weight: 700;
    font-size: 14px;
}

.pay-method-item.selected .pay-method-check {
    color: #52c41a;
}

/* 协议 */
.pay-agreement {
    padding: 8px 4px 16px;
    font-size: 12px;
    color: #888;
}

.pay-agreement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.pay-agreement-label input {
    width: 14px;
    height: 14px;
    accent-color: #667eea;
}

/* 退款提示 */
.pay-refund-tip {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #52c41a;
    margin-bottom: 20px;
    text-align: center;
}

/* 支付按钮 */
.pay-confirm-btn-wrap {
    padding-bottom: 20px;
}

.pay-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,149,0,0.3);
    transition: all 0.2s;
}

.pay-confirm-btn:active {
    transform: scale(0.98);
}

.pay-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 支付成功页 ========== */
#pay-success-page {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #f5f7fa 40%);
    min-height: 100vh;
}

.pay-success-content {
    padding: 40px 24px 20px;
    text-align: center;
}

.pay-success-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.pay-success-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pay-success-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

/* 已解锁权益 */
.pay-success-benefits {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pay-success-benefits-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.success-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.success-benefit-check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #52c41a, #389e0d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* 成功页按钮 */
.pay-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.pay-success-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-success-btn.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(255,149,0,0.3);
}

.pay-success-btn.secondary {
    background: white;
    color: #667eea;
    border: 1px solid #e0e0e0;
}

.pay-success-btn:active {
    transform: scale(0.98);
}

.pay-success-share {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

/* ========== 支付失败页 ========== */
#pay-fail-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.pay-fail-content {
    padding: 60px 24px 20px;
    text-align: center;
}

.pay-fail-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.pay-fail-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pay-fail-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.pay-fail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-fail-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-fail-btn.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a1a2e;
}

.pay-fail-btn.secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

.pay-fail-btn:active {
    transform: scale(0.98);
}

/* ========== 订阅管理页 ========== */
#subscription-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.subscription-content {
    padding: 16px;
}

.sub-card {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a1d6e 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sub-card-title {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.sub-plan-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-plan-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd700, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-plan-expire {
    font-size: 13px;
    opacity: 0.8;
}

.sub-plan-remaining {
    font-size: 12px;
    color: #ffd700;
    font-weight: 500;
}

.sub-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sub-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.sub-order-list {
    display: flex;
    flex-direction: column;
}

.sub-order-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.sub-order-item:active {
    background: #fafafa;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 6px;
}

.sub-order-info {
    flex: 1;
}

.sub-order-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.sub-order-date {
    font-size: 12px;
    color: #999;
}

.sub-order-right {
    text-align: right;
}

.sub-order-amount {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.sub-order-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.sub-order-status.success {
    background: #f6ffed;
    color: #52c41a;
}

.sub-order-status.failed {
    background: #fff1f0;
    color: #f5222d;
}

.sub-order-status.pending {
    background: #fffbe6;
    color: #faad14;
}

.sub-more-btn {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #667eea;
    cursor: pointer;
}

.sub-more-arrow {
    margin-left: 4px;
}

.sub-empty {
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-size: 13px;
}

/* 续费管理 */
.sub-renew-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sub-renew-info {
    flex: 1;
}

.sub-renew-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.sub-renew-desc {
    font-size: 12px;
    color: #999;
}

.sub-switch {
    width: 44px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-switch.on {
    background: linear-gradient(135deg, #52c41a, #389e0d);
}

.sub-switch-dot {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sub-switch.on .sub-switch-dot {
    left: 22px;
}

.sub-upgrade-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.sub-upgrade-info {
    flex: 1;
}

.sub-upgrade-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.sub-upgrade-desc {
    font-size: 12px;
    color: #999;
}

.sub-upgrade-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    color: #1a1a2e;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sub-upgrade-btn:active {
    transform: scale(0.95);
}

/* 退款政策 */
.sub-refund-box {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 12px;
    padding: 16px;
}

.sub-refund-title {
    font-size: 14px;
    font-weight: 600;
    color: #389e0d;
    margin-bottom: 8px;
}

.sub-refund-desc {
    font-size: 13px;
    color: #52c41a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sub-customer-service {
    font-size: 12px;
    color: #389e0d;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

/* ========== 小皇冠标识 ========== */
.vip-crown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    color: #1a1a2e;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.vip-crown-icon {
    display: inline-block;
    font-size: 14px;
    margin-left: 2px;
    vertical-align: middle;
}

/* 非会员皇冠（灰色，可点击升级） */
.vip-crown-icon.locked {
    opacity: 0.5;
    cursor: pointer;
}

/* ========== 限额提示条 ========== */
.limit-tip-bar {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
    color: #d46b08;
    padding: 10px 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.limit-tip-bar .limit-text {
    flex: 1;
}

.limit-tip-bar .limit-upgrade-btn {
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    color: #1a1a2e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ========== 响应式 ========== */
@media (max-width: 360px) {
    .vip-plan-card {
        padding: 12px 6px;
    }
    .vip-price-num {
        font-size: 20px;
    }
    .vip-title {
        font-size: 20px;
    }
}
/* ========== 猫咪伙伴区皇冠 ========== */
.cat-vip-crown {
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
    filter: grayscale(1) opacity(0.4);
    transition: all 0.3s;
}

.cat-vip-crown.vip-active {
    filter: none;
    text-shadow: 0 0 4px rgba(255,215,0,0.5);
}
