/* 会员套餐 — OneDash 色彩定价表 */

.vip-inner {
    width: 96%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 会员信息 — 简洁白底信息条 */
.vip-summary-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.vip-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
    position: relative;
}

.vip-summary-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #eef1f6;
}

.vip-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f6fa;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.vip-summary-meta {
    flex: 1;
    min-width: 0;
}

.vip-summary-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.vip-summary-value {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-all;
}

.vip-summary-value-sm {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.vip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.vip-status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.vip-status-badge.is-active {
    color: #0d9e1f;
    background: rgba(13, 158, 31, 0.08);
    border: 1px solid rgba(13, 158, 31, 0.15);
}

.vip-status-badge.is-expired {
    color: #d94820;
    background: rgba(217, 72, 32, 0.08);
    border: 1px solid rgba(217, 72, 32, 0.15);
}

.vip-pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vip-price-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vip-recommend-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px 6px 18px;
    border-radius: 0 12px 0 14px;
    background: linear-gradient(135deg, #ffe566 0%, #ffc107 100%);
    color: #7c5200;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.vip-recommend-badge .bi {
    font-size: 11px;
}

.vip-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.vip-price-card.vip-c-primary { background: #3461ff; }
.vip-price-card.vip-c-success { background: #12bf24; }
.vip-price-card.vip-c-orange  { background: #ff6632; }
.vip-price-card.vip-c-purple  { background: #8932ff; }

.vip-price-head {
    text-align: center;
    padding: 22px 16px 16px;
}

.vip-price-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.vip-price-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.vip-price-amount small {
    font-size: 16px;
    font-weight: 600;
}

.vip-price-duration {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.vip-price-origin {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.85;
    text-decoration: line-through;
}

.vip-discount-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 600;
}

.vip-price-body {
    flex: 1;
    padding: 0 16px 12px;
}

.vip-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vip-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    line-height: 1.45;
}

.vip-benefit-list li .bi {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.95;
}

.vip-price-foot {
    padding: 14px 16px 20px;
    text-align: center;
}

.vip-buy-btn {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.vip-buy-btn:hover {
    background: #fff;
    color: #334155;
    text-decoration: none;
}

.vip-buy-btn:disabled,
.vip-buy-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.vip-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.vip-bottom-bar-single {
    grid-template-columns: 1fr;
}

.vip-bottom-panel {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.vip-bottom-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-bottom-title .bi {
    color: #3461ff;
}

.vip-redeem-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vip-redeem-input {
    flex: 1;
    min-width: 160px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.vip-redeem-btn {
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #3461ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vip-redeem-buy {
    margin-top: 10px;
    font-size: 13px;
}

.vip-redeem-buy a {
    color: #3461ff;
}

.vip-order-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #f5f8ff;
    color: #3461ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(52, 97, 255, 0.15);
}

.vip-order-link:hover {
    background: #eef2ff;
    color: #2850e6;
    text-decoration: none;
}

/* 支付订单列表 */
.vip-orders-panel {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 20px 22px 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.vip-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vip-orders-head .vip-bottom-title {
    margin-bottom: 0;
}

.vip-orders-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vip-orders-refresh:hover {
    background: #eef2ff;
    border-color: rgba(52, 97, 255, 0.2);
    color: #3461ff;
}

.vip-orders-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}

.vip-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
}

.vip-orders-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f6;
    white-space: nowrap;
}

.vip-orders-table tbody td {
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.vip-orders-table tbody tr:hover td {
    background: #fafbfd;
}

.vip-orders-empty {
    text-align: center;
    color: #94a3b8;
    padding: 36px 14px !important;
}

.vip-order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.vip-order-status.paid {
    color: #0d9e1f;
    background: rgba(13, 158, 31, 0.08);
}

.vip-order-status.unpaid {
    color: #d94820;
    background: rgba(217, 72, 32, 0.08);
}

.vip-orders-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.vip-orders-pager button {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

.vip-orders-pager button:hover:not(:disabled) {
    border-color: rgba(52, 97, 255, 0.25);
    color: #3461ff;
}

.vip-orders-pager button.active {
    background: #3461ff;
    border-color: #3461ff;
    color: #fff;
}

.vip-orders-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vip-orders-pager .pager-info {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 4px;
}

.vip-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 15px;
}

.vip-epay-tip {
    text-align: center;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(255, 102, 50, 0.08);
    color: #d94820;
    font-size: 13px;
    border: 1px solid rgba(255, 102, 50, 0.15);
}

@media (max-width: 1100px) {
    .vip-summary-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .vip-summary-item:nth-child(2)::after {
        display: none;
    }

    .vip-summary-item:nth-child(1),
    .vip-summary-item:nth-child(3) {
        border-bottom: 1px solid #eef1f6;
    }
}

@media (max-width: 768px) {
    .vip-summary-panel {
        grid-template-columns: 1fr;
    }

    .vip-summary-item::after {
        display: none;
    }

    .vip-summary-item:not(:last-child) {
        border-bottom: 1px solid #eef1f6;
    }

    .vip-bottom-bar {
        grid-template-columns: 1fr;
    }
}
