/* 公共办理会员弹窗样式（从 rightNav.css 抽取，供发布页/详情页/右侧栏共用） */

/* 弹窗遮罩层 */
.right-ranking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

/* 弹窗主体 */
.right-ranking-popup {
    width: 640px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* 通用弹窗按钮 */
.right-popup-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.right-popup-btn.shop {
    background-color: antiquewhite;
}

.right-popup-btn:hover {
    background-color: #f1f3f5;
}

/* 兑换类模态通用结构 */
.ym-exchange-modal {
    max-width: 520px;
}

.ym-exchange-header h3 {
    margin: 0 0 6px 0;
    color: #333;
}

.ym-exchange-tip {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #6b7280;
}

.ym-exchange-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ym-exchange-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.ym-exchange-value {
    font-weight: 700;
    color: #1f2937;
}

.ym-exchange-error {
    color: #e53935;
    font-size: 12px;
}

/* 办理会员弹窗样式 */
.vip-modal {
    max-width: 480px;
}

.vip-benefits {
    padding: 12px 14px;
    background: linear-gradient(135deg, #fffdf3 0%, #fff7dd 100%);
    border: 1px solid #e8c96a;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 10px rgba(212, 160, 23, 0.18);
}

.vip-benefits-title {
    font-size: 16px;
    font-weight: 700;
    color: #8a6d1a;
    margin-bottom: 8px;
}

/* 会员权益列表：去掉默认圆点，改用金色圆形对勾 */
.vip-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    color: #6b4a0e;
    line-height: 1.9;
}

.vip-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 1px 0;
    transition: transform 0.15s ease;
}

/* 每个权益前的金色对勾圆标 */
.vip-benefits-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 4px;
    line-height: 15px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #7a4a00;
    background: linear-gradient(135deg, #ffe29a 0%, #f9c851 100%);
    border: 1px solid #d4a017;
    border-radius: 50%;
}

/* 鼠标悬停时权益项轻微右移，增强互动感 */
.vip-benefits-list li:hover {
    transform: translateX(3px);
    color: #8a6d1a;
}

.vip-plan {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vip-price {
    color: #e53935;
}

.vip-cost {
    color: #e53935 !important;
}

.vip-auto-renew {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

/* 会员弹窗复选框：覆盖 index.css 全局隐藏 checkbox 的样式，恢复原生可见 */
#vip-overlay input[type="checkbox"] {
    opacity: 1;
    width: 16px;
    height: 16px;
    position: static;
    margin: 0;
    cursor: pointer;
    accent-color: #d4880f;
}

/* 按年办理时自动续费选项置灰 */
#vip-overlay .vip-auto-renew input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

/* 单选按钮（会员时长选择） */
.post-top-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.post-top-radio input {
    width: 16px;
    height: 16px;
}

.post-top-radio input[disabled] {
    cursor: not-allowed;
}

.post-top-radio input[disabled]+span {
    color: #9ca3af;
}

/* 弹窗按钮配色 */
.right-popup-btn.confirm-btn {
    background-color: #34d399;
    border-color: #34d399;
    color: #fff;
}

.right-popup-btn.confirm-btn:hover {
    background-color: #2bbf86;
    border-color: #2bbf86;
}

.right-popup-btn.cancel-btn {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.right-popup-btn.cancel-btn:hover {
    background-color: #e5e7eb;
    border-color: #cbd5e1;
}

/* 弹窗操作按钮区 */
.ym-exchange-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.ym-exchange-actions .right-popup-btn.confirm {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #fff;
    border-color: #10b981;
}

.ym-exchange-actions .right-popup-btn.cancel {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.ym-exchange-actions .right-popup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
