/* ============================================================
   YMX 会员支付样式
   VIP套餐、付费内容、虚拟商品、支付弹窗
   ============================================================ */

/* ============================================================
   全局 Toast 提示（付费发布等流程）
   ============================================================ */

.ymx-pay-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #2ecc71;
    color: #fff;
    padding: 11px 28px;
    border-radius: 6px;
    z-index: 999999;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    white-space: nowrap;
    animation: ymx-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ymx-pay-toast--error {
    background: #e74c3c;
}

.ymx-pay-toast--hide {
    animation: ymx-toast-out 0.35s ease forwards;
}

@keyframes ymx-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes ymx-toast-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* 支付弹窗 */
.ymx-pay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.ymx-pay-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ymx-pay-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ymx-pay-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.ymx-pay-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ymx-pay-modal-close:hover {
    color: #333;
}

body.ymx-pay-modal-open {
    overflow: hidden;
}

/* ============================================================
   VIP 套餐卡片
   ============================================================ */

.ymx-vip-plans {
    margin: 0 auto;
    padding: 20px;
}

.ymx-vip-plans-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.ymx-vip-current {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ymx-vip-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ymx-vip-level {
    font-size: 14px;
}

.ymx-vip-expire {
    font-size: 13px;
    opacity: 0.9;
}

.ymx-vip-plan-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ymx-vip-plan-item {
    flex: 1 1 0;
    min-width: 120px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ymx-vip-plan-item:hover {
    border-color: #f5af19;
}

.ymx-vip-plan-item.selected,
.ymx-vip-plan-item.ymx-vip-plan-highlight {
    border-color: #f5af19;
    background: #fff8f0;
}

.ymx-vip-plan-item.selected .ymx-vip-plan-name,
.ymx-vip-plan-item.ymx-vip-plan-highlight .ymx-vip-plan-name {
    color: #f5af19;
}

.ymx-vip-plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ymx-vip-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: #f12711;
    margin-bottom: 4px;
}

.ymx-vip-currency {
    font-size: 14px;
}

.ymx-vip-plan-perday,
.ymx-vip-perday {
    font-size: 12px;
    color: #f5af19;
    border: 1px solid #f5af19;
    background: #fff8f0;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 4px;
    display: inline-block;
    width: fit-content;
}

.ymx-vip-plan-perks {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    padding-top: 10px;
    text-align: left;
}

.ymx-vip-plan-perks li {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.ymx-vip-plan-item.selected .ymx-vip-plan-perks li,
.ymx-vip-plan-item.ymx-vip-plan-highlight .ymx-vip-plan-perks li {
    color: #f5af19;
}

/* VIP 支付方式 */
.ymx-vip-payment {
    margin-bottom: 16px;
}

.ymx-vip-payment-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
}

.ymx-vip-payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ymx-vip-payment-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ymx-vip-payment-item:has(input:checked) {
    border-color: #f5af19;
    background: #fff8f0;
}

.ymx-vip-action {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.ymx-vip-buy-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-vip-buy-btn:hover {
    opacity: 0.9;
}

.ymx-vip-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ymx-vip-invite-btn {
    padding: 10px 16px;
    background: #fff;
    color: #f5af19;
    border: 1px solid #f5af19;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ymx-vip-invite-btn:hover {
    background: #fff8f0;
}

/* VIP 权益说明 */
.ymx-vip-benefits {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.ymx-vip-benefits-text {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    text-align: left;
}

/* 邀请码兑换弹窗 */
.ymx-vip-invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ymx-vip-invite-modal[hidden] {
    display: none;
}

.ymx-vip-invite-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ymx-vip-invite-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ymx-vip-invite-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.ymx-vip-invite-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.ymx-vip-invite-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ymx-vip-invite-modal-close:hover {
    color: #333;
}

.ymx-vip-invite-modal-body {
    padding: 20px;
}

.ymx-vip-invite-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ymx-vip-invite-input:focus {
    border-color: #f5af19;
}

.ymx-vip-invite-tip {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.ymx-vip-invite-tip--error {
    color: #e74c3c;
}

.ymx-vip-invite-tip--success {
    color: #2ecc71;
}

.ymx-vip-invite-modal-footer {
    padding: 0 20px 20px;
}

.ymx-vip-invite-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-vip-invite-submit:hover {
    opacity: 0.9;
}

.ymx-vip-invite-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   付费内容锁定
   ============================================================ */

.ymx-content-locked {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    background: #fafafa;
}

.ymx-content-locked-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.ymx-content-locked-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ymx-content-locked-price {
    font-size: 16px;
    color: #f12711;
    margin-bottom: 16px;
}

.ymx-content-locked-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.ymx-content-locked-qrcode {
    margin-bottom: 16px;
}

.ymx-content-locked-qrcode img {
    max-width: 160px;
    border-radius: 4px;
}

.ymx-content-locked-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ymx-content-locked-hint {
    font-size: 13px;
    color: #999;
}

.ymx-content-buy-btn,
.ymx-content-login-btn,
.ymx-content-reply-btn,
.ymx-password-submit-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ymx-content-buy-btn:hover,
.ymx-content-login-btn:hover,
.ymx-content-reply-btn:hover,
.ymx-password-submit-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.ymx-content-login-btn {
    background: #4a90d9;
}

/* 密码表单 */
.ymx-password-form {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.ymx-password-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
}

.ymx-password-input:focus {
    outline: none;
    border-color: #f5af19;
}

/* ============================================================
   虚拟商品卡片
   ============================================================ */

.ymx-goods-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
    background: #fff;
    transition: box-shadow 0.2s;
}

.ymx-goods-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ymx-goods-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ymx-goods-price {
    font-size: 20px;
    font-weight: 700;
    color: #f12711;
}

.ymx-goods-currency {
    font-size: 14px;
}

.ymx-goods-stock {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.ymx-goods-stock-empty {
    color: #f12711;
}

.ymx-goods-buy-btn {
    padding: 8px 20px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.ymx-goods-buy-btn:hover {
    opacity: 0.85;
}

.ymx-goods-login-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #4a90d9;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.ymx-goods-notfound {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* ============================================================
   支付弹窗内部样式
   ============================================================ */

.ymx-pay-wechat,
.ymx-content-pay-modal,
.ymx-goods-pay-modal {
    text-align: center;
}

.ymx-pay-wechat h4,
.ymx-content-pay-modal h4,
.ymx-goods-pay-modal h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.ymx-pay-qrcode {
    margin: 16px auto;
}

.ymx-pay-qrcode img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ymx-pay-tip {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.ymx-content-pay-price,
.ymx-goods-pay-price {
    font-size: 16px;
    margin-bottom: 16px;
}

.ymx-content-pay-price strong,
.ymx-goods-pay-price strong {
    color: #f12711;
    font-size: 20px;
}

.ymx-content-pay-methods,
.ymx-goods-pay-methods {
    margin-bottom: 16px;
}

.ymx-pay-method-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ymx-pay-method-item:has(input:checked) {
    border-color: #f5af19;
    background: #fff8f0;
}

.ymx-content-pay-confirm,
.ymx-goods-pay-confirm {
    display: inline-block;
    padding: 10px 32px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-content-pay-confirm:hover,
.ymx-goods-pay-confirm:hover {
    opacity: 0.85;
}

.ymx-content-pay-confirm:disabled,
.ymx-goods-pay-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   VIP 状态展示
   ============================================================ */

.ymx-vip-info {
    padding: 12px;
}

.ymx-vip-info-login {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ymx-vip-info-none {
    text-align: center;
    padding: 20px;
}

.ymx-vip-info-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.ymx-vip-info-text {
    font-size: 15px;
    color: #666;
}

.ymx-vip-info-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    border-radius: 8px;
    color: #fff;
}

/* ============================================================
   付费发布弹窗
   ============================================================ */

.ymx-publish-pay-modal {
    text-align: left;
}

.ymx-publish-pay-amount-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    margin-bottom: 14px;
}

.ymx-publish-pay-amount-label {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.ymx-publish-pay-amount-value {
    font-size: 16px;
    color: #e65100;
    font-weight: 600;
}

.ymx-publish-pay-amount-value strong {
    font-size: 26px;
    color: #f12711;
}

.ymx-publish-pay-hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    line-height: 1.5;
}

.ymx-publish-pay-methods {
    margin-bottom: 16px;
}

.ymx-publish-pay-methods .ymx-pay-method-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    margin: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}

.ymx-publish-pay-methods .ymx-pay-method-item:has(input:checked) {
    border-color: #f5af19;
    background: #fff8f0;
    color: #e65100;
}

.ymx-publish-pay-qrcode-wrap {
    margin-bottom: 16px;
    border: 1px solid #f0e0c8;
    border-radius: 8px;
    background: #fafafa;
    padding: 16px;
    text-align: center;
    animation: ymx-fadein 0.25s ease;
}

@keyframes ymx-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ymx-publish-pay-qrcode-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ymx-publish-pay-qrcode-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ymx-publish-pay-qrcode-img img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 6px;
    display: block;
}

.ymx-publish-pay-qrcode-tip {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.ymx-check-pay-btn {
    padding: 7px 22px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.ymx-check-pay-btn:hover {
    opacity: 0.85;
}

.ymx-publish-pay-confirm {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 1px;
}

.ymx-publish-pay-confirm:hover {
    opacity: 0.9;
}

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

/* ============================================================
   发布表单 - 原价信息盒子
   ============================================================ */

.ymx-post-price-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    color: #666;
}

.ymx-post-price-original {
    color: #999;
}

.ymx-post-price-original.is-strikethrough {
    text-decoration: line-through;
}

.ymx-post-price-discount,
.ymx-vip-plan-discount-badge,
.ymx-campaign-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f5af19;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.6;
}

.ymx-vip-plan-discount-badge {
    display: block;
    width: fit-content;
    margin: 4px auto 0;
}

/* ============================================================
   发布表单底部按钮行（含说明文字）
   ============================================================ */

.ymx-post-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ymx-post-submit-row button[type="submit"] {
    background: #2f3d4e;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.ymx-post-submit-row button[type="submit"]:hover {
    background: #3d5068;
}

.ymx-post-submit-tip {
    font-size: 13px;
    color: #f5af19;
    line-height: 1.4;
    position: relative;
    padding-left: 16px;
}

.ymx-post-submit-tip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #f5af19;
    border-radius: 50%;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 600px) {
    .ymx-vip-plan-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ymx-vip-plan-item {
        padding: 12px 8px;
    }

    .ymx-vip-plan-price {
        font-size: 18px;
    }

    .ymx-goods-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ymx-goods-actions {
        width: 100%;
    }

    .ymx-goods-buy-btn {
        width: 100%;
    }
}

/* ============================================================
   下载区
   ============================================================ */

.ymx-download-area {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    background: #fafffe;
}

.ymx-download-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ymx-download-icon {
    font-size: 20px;
}

.ymx-download-label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.ymx-download-count {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

.ymx-download-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.ymx-download-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ymx-download-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-download-btn:hover {
    opacity: 0.85;
}

.ymx-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ymx-download-login-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #4a90d9;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.ymx-download-comment-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #f5af19;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.ymx-download-hint {
    font-size: 13px;
    color: #999;
}

/* ============================================================
   浏览限制
   ============================================================ */

.ymx-browse-limit-blocked {
    margin: 24px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.ymx-browse-limit-card {
    position: relative;
    text-align: center;
    padding: 40px 32px 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ymx-browse-limit-icon-wrap {
    margin-bottom: 20px;
}

.ymx-browse-limit-svg {
    display: inline-block;
}

.ymx-browse-limit-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ymx-browse-limit-message {
    margin: 0 0 8px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.ymx-browse-limit-detail {
    margin: 0 0 24px;
    font-size: 13px;
    color: #999;
}

.ymx-browse-limit-detail p {
    margin: 0;
}

.ymx-browse-limit-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ymx-browse-limit-login-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #2f3d4e;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.ymx-browse-limit-login-btn:hover {
    background: #3d5068;
    color: #fff;
}

.ymx-browse-limit-register-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #fff;
    color: #2f3d4e;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.ymx-browse-limit-register-btn:hover {
    border-color: #2f3d4e;
    color: #2f3d4e;
}

.ymx-browse-limit-vip-btn {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ymx-browse-limit-vip-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.ymx-browse-limit-footer {
    font-size: 12px;
    color: #aaa;
}

.ymx-browse-limit-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   公众号推广弹窗
   ============================================================ */

.ymx-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ymx-promo-popup {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ymx-promo-qrcode img {
    max-width: 160px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.ymx-promo-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ymx-promo-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.ymx-promo-field {
    width: 100%;
}

.ymx-promo-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.ymx-promo-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.ymx-promo-field input:focus {
    outline: none;
    border-color: #f5af19;
}

.ymx-promo-submit-btn {
    padding: 10px 32px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-promo-submit-btn:hover {
    opacity: 0.85;
}

.ymx-promo-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ymx-promo-error {
    font-size: 13px;
    color: #f12711;
}

/* ============================================================
   管理员阅读
   ============================================================ */

.ymx-content-locked-admin {
    background: #f8f9fa;
}

/* ============================================================
   签到区域
   ============================================================ */

.ymx-checkin-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 112px;
    padding: 16px 12px;
    margin: 14px 0 0;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border-radius: 8px;
    border: 1px solid #ffe0b2;
    text-align: center;
}

.ymx-checkin-area--done {
    min-height: auto;
    padding: 8px 0;
    background: none;
    border: none;
    border-radius: 0;
    gap: 0;
}

.ymx-checkin-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.ymx-checkin-status {
    color: #4caf50;
    font-weight: 600;
}

.ymx-checkin-streak {
    color: #f5af19;
    font-weight: 600;
}

.ymx-checkin-points {
    color: #999;
    font-size: 12px;
}

.ymx-checkin-btn {
    padding: 6px 20px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-checkin-btn:hover {
    opacity: 0.85;
}

.ymx-checkin-btn--done {
    background: #ccc;
    cursor: default;
}

/* ============================================================
   收藏列表
   ============================================================ */

.ymx-favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ymx-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ymx-favorite-item:last-child {
    border-bottom: none;
}

.ymx-favorite-info {
    flex: 1;
    min-width: 0;
}

.ymx-favorite-title {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ymx-favorite-title:hover {
    color: #f5af19;
}

.ymx-favorite-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.ymx-favorite-remove-btn {
    padding: 4px 12px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    margin-left: 12px;
    flex-shrink: 0;
}

.ymx-favorite-remove-btn:hover {
    border-color: #f12711;
    color: #f12711;
}

.ymx-favorites-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.ymx-favorite-points-tip {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #f5af19;
    white-space: nowrap;
    animation: ymx-fade-up 2s ease forwards;
}

@keyframes ymx-fade-up {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* 收藏按钮在 like-reward-module 中 */
.like-reward-module .favorite-btn {
    position: relative;
}

/* ============================================================
   分销推广
   ============================================================ */

.ymx-dist-center {
    padding: 12px;
}

.ymx-dist-apply,
.ymx-dist-pending {
    text-align: center;
    padding: 40px 20px;
}

.ymx-dist-apply-icon,
.ymx-dist-pending-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ymx-dist-apply h3,
.ymx-dist-pending h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.ymx-dist-apply p,
.ymx-dist-pending p {
    color: #666;
    margin-bottom: 20px;
}

.ymx-dist-apply-btn {
    padding: 10px 32px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-dist-apply-btn:hover {
    opacity: 0.9;
}

.ymx-dist-referral {
    margin-bottom: 20px;
}

.ymx-dist-referral label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ymx-dist-referral-box {
    display: flex;
    gap: 8px;
}

.ymx-dist-referral-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
}

.ymx-dist-copy-btn {
    padding: 8px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.ymx-dist-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ymx-dist-stat-card {
    text-align: center;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ymx-dist-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #f12711;
    margin-bottom: 4px;
}

.ymx-dist-stat-label {
    font-size: 13px;
    color: #999;
}

.ymx-dist-withdraw-section {
    margin-bottom: 24px;
}

.ymx-dist-withdraw-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.ymx-dist-withdraw-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ymx-dist-withdraw-amount,
.ymx-dist-withdraw-method,
.ymx-dist-withdraw-account {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ymx-dist-withdraw-amount {
    width: 120px;
}

.ymx-dist-withdraw-btn {
    padding: 8px 20px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.ymx-dist-withdraw-btn:hover {
    opacity: 0.85;
}

.ymx-dist-orders-section h4,
.ymx-dist-withdraws-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.ymx-dist-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ymx-dist-orders-table th,
.ymx-dist-orders-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.ymx-dist-orders-table th {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

@media (max-width: 600px) {
    .ymx-dist-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ymx-dist-withdraw-form {
        flex-direction: column;
    }

    .ymx-dist-withdraw-amount,
    .ymx-dist-withdraw-btn {
        width: 100%;
    }
}

/* ============================================================
   营销活动
   ============================================================ */

.ymx-campaigns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.ymx-campaign-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.ymx-campaign-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ymx-campaign-badge {
    flex-shrink: 0;
    /* padding/color/background 与 .ymx-post-price-discount 共用 */
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ymx-campaign-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ymx-campaign-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.ymx-campaign-scope {
    font-size: 12px;
    color: #f5af19;
}

.ymx-campaign-price del {
    color: #999;
    margin-right: 4px;
}

.ymx-campaign-price ins {
    color: #f12711;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

/* 会员概览 - 营销活动 */
.ymx-overview-campaigns {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
}

.ymx-overview-campaigns .ymx-campaigns-list {
    padding: 0;
    margin: 0;
}

/* 付费发布页 - 营销活动 */
.ymx-post-campaigns {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
}

.ymx-post-campaigns .ymx-campaigns-list {
    padding: 0;
    margin: 0;
}

.ymx-post-campaign-price-tip {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ffe0b2;
    font-size: 14px;
    color: #666;
}

.ymx-post-campaign-price-tip .ymx-campaign-price {
    font-size: 16px;
}

/* VIP套餐 - 折扣划线价 */
.ymx-vip-plan-original {
    margin-top: 2px;
}

.ymx-vip-plan-original del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

/* VIP 选择摘要 */
.ymx-vip-summary {
    text-align: center;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}

.ymx-vip-summary-text {
    font-weight: 500;
}

.ymx-vip-summary-invite {
    margin-bottom: 6px;
    font-size: 15px;
    color: #f5af19;
    font-weight: 600;
}

/* 广告位渲染 */
.ymx-ad-position {
    margin: 16px 0;
}

.ymx-ad-item {
    display: inline-block;
    margin: 4px;
}

.ymx-ad-item img {
    max-width: 100%;
    border-radius: 4px;
}

.ymx-ad-text {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================================
   身份认证
   ============================================================ */

.ymx-cert-center {
    padding: 12px;
}

.ymx-cert-apply,
.ymx-cert-pending,
.ymx-cert-approved {
    text-align: center;
    padding: 30px 20px;
}

.ymx-cert-apply-icon,
.ymx-cert-pending-icon,
.ymx-cert-approved-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ymx-cert-apply h3,
.ymx-cert-pending h3,
.ymx-cert-approved h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.ymx-cert-apply p,
.ymx-cert-pending p,
.ymx-cert-approved p {
    color: #666;
    margin-bottom: 20px;
}

.ymx-cert-rejected-notice {
    padding: 10px 16px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #c62828;
}

.ymx-cert-reject-reason {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.ymx-cert-form {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.ymx-cert-form-group {
    margin-bottom: 16px;
}

.ymx-cert-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ymx-cert-type-select,
.ymx-cert-name-input,
.ymx-cert-info-input,
.ymx-cert-images-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.ymx-cert-type-select:focus,
.ymx-cert-name-input:focus,
.ymx-cert-info-input:focus,
.ymx-cert-images-input:focus {
    outline: none;
    border-color: #f5af19;
}

.ymx-cert-submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f5af19;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ymx-cert-submit-btn:hover {
    opacity: 0.85;
}

.ymx-cert-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.ymx-cert-badge-preview {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ymx-cert-badge {
    font-size: 20px;
}

.ymx-cert-badge-text {
    font-size: 13px;
    color: #666;
}

/* ============================================================
   VIP 专享
   ============================================================ */

.ymx-vip-exclusive-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
}

.ymx-vip-exclusive-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.ymx-vip-exclusive-locked h4 {
    font-size: 18px;
    margin: 0 0 8px;
    width: 100%;
    text-align: center;
}

.single-article .entry-content .ymx-vip-exclusive-locked h4 {
    margin-top: 0;
}

.ymx-vip-exclusive-locked p {
    color: #666;
    margin: 0 0 16px;
    width: 100%;
    text-align: center;
    text-indent: 0;
}

.ymx-vip-exclusive-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ymx-vip-exclusive-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 24px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ymx-vip-exclusive-buy-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.ymx-vip-badge-inline {
    font-size: 14px;
    vertical-align: middle;
}

/* ============================================================
   会员中心 Dashboard
   ============================================================ */
.ymx-dashboard { margin-bottom: 20px; }
.ymx-dashboard-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ymx-dashboard-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}
.ymx-dashboard-card:hover {
    border-color: #007bfe;
    box-shadow: 0 2px 10px rgba(0, 123, 254, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.ymx-dashboard-card-value { font-size: 24px; font-weight: 700; color: #1e293b; }
.ymx-dashboard-card:hover .ymx-dashboard-card-value { color: #007bfe; }
.ymx-dashboard-card-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.ymx-dashboard-card--warn { border-color: #f59e0b; }
.ymx-dashboard-card--warn .ymx-dashboard-card-value { color: #d97706; }
.ymx-dashboard-card--warn:hover { border-color: #f59e0b; }
.ymx-dashboard-card--warn:hover .ymx-dashboard-card-value { color: #d97706; }

/* ============================================================
   会员中心订单/积分/代币/下载表格
   ============================================================ */
.ymx-orders-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.ymx-orders-table th, .ymx-orders-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.ymx-orders-table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 12px; }
.ymx-orders-table tbody tr:hover { background: #f8fafc; }
.ymx-plus { color: #16a34a; font-weight: 600; }
.ymx-minus { color: #dc2626; }
.ymx-points-balance { font-size: 16px; padding: 16px 0 0; }
.ymx-points-balance strong { color: #f5af19; font-size: 20px; }

/* ============================================================
   小工具 - 登录引导
   ============================================================ */
.ymx-login-widget-logged { padding: 12px; }
.ymx-login-widget-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ymx-login-widget-user img { border-radius: 50%; }
.ymx-login-widget-info strong { font-size: 14px; display: block; }
.ymx-login-widget-vip { display: inline-block; background: linear-gradient(135deg, #f5af19, #f12711); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 700; margin-top: 2px; }
.ymx-login-widget-links { display: flex; gap: 8px; }
.ymx-login-widget-links a { font-size: 13px; color: #64748b; text-decoration: none; }
.ymx-login-widget-links a:hover { color: #f5af19; }
.ymx-login-widget-guest { padding: 12px; text-align: center; }
.ymx-login-widget-desc { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.ymx-login-widget-features { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.ymx-login-widget-features span { font-size: 11px; background: #f1f5f9; color: #475569; padding: 2px 8px; border-radius: 10px; }
.ymx-login-widget-btns { display: flex; gap: 8px; justify-content: center; }
.ymx-login-widget-btn { display: inline-block; padding: 6px 20px; border-radius: 6px; font-size: 13px; text-decoration: none; cursor: pointer; border: none; }
.ymx-login-widget-btn--login { background: #f5af19; color: #fff; }
.ymx-login-widget-btn--login:hover { opacity: 0.9; color: #fff; }
.ymx-login-widget-btn--reg { background: #e2e8f0; color: #475569; }
.ymx-login-widget-btn--reg:hover { background: #cbd5e1; }

/* ============================================================
   小工具 - 签到
   ============================================================ */
.ymx-checkin-widget-inner { padding: 12px; text-align: center; }
.ymx-checkin-widget-streak { margin-bottom: 12px; }
.ymx-checkin-widget-days { font-size: 32px; font-weight: 700; color: #f5af19; display: block; line-height: 1; }
.ymx-checkin-widget-label { font-size: 12px; color: #64748b; }
.ymx-checkin-widget-btn { display: inline-block; padding: 8px 24px; background: linear-gradient(135deg, #f5af19, #f12711); color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 600; transition: opacity 0.2s; }
.ymx-checkin-widget-btn:hover { opacity: 0.85; }
.ymx-checkin-widget-btn--done { background: #94a3b8; cursor: default; }
.ymx-checkin-widget-btn--done:hover { opacity: 1; }
.ymx-checkin-widget-balance { margin-top: 10px; font-size: 13px; color: #64748b; }
.ymx-checkin-widget-balance strong { color: #f5af19; }
.ymx-checkin-widget-login { font-size: 13px; color: #94a3b8; }
.ymx-checkin-widget-login a { color: #f5af19; }

/* ============================================================
   小工具 - VIP 套餐
   ============================================================ */
/* 容器 */
.ymx-vip-widget {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    padding: 10px;
}

/* 套餐卡片列表 */
.ymx-vip-widget-plans {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* 单个套餐卡片 */
.ymx-vip-widget-plan {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.ymx-vip-widget-plan:last-child {
    border-bottom: none;
}
.ymx-vip-widget-plan.is-active {
    background: #fffbeb;
}

/* 套餐 header — 可点击 */
.ymx-vip-widget-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    transition: background 0.15s;
}
.ymx-vip-widget-plan-header:hover {
    background: #f8fafc;
}
.ymx-vip-widget-plan.is-active .ymx-vip-widget-plan-header {
    background: #fef3c7;
}

/* 左侧：名称 + 天数 */
.ymx-vip-widget-plan-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}
.ymx-vip-widget-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* 右侧：价格区 */
.ymx-vip-widget-plan-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 折扣标签 */
.ymx-vip-widget-plan-discount-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1.6;
}

/* 当前价格 */
.ymx-vip-widget-plan-price {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    white-space: nowrap;
}

/* 展开箭头 */
.ymx-vip-widget-plan-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 2px;
    transition: transform 0.25s ease;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    color: #94a3b8;
}
.ymx-vip-widget-plan.is-active .ymx-vip-widget-plan-arrow {
    transform: rotate(180deg);
    color: #f59e0b;
}

/* 展开内容 — 权益说明 */
.ymx-vip-widget-plan-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: #fffbeb;
}
.ymx-vip-widget-plan-body.is-open {
    max-height: 400px;
}
.ymx-vip-widget-plan-perks {
    list-style: none;
    margin: 0;
    padding: 8px;
    text-align: center;
}
.ymx-vip-widget-plan-perks li {
    position: relative;
    padding: 4px 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.2;
}
.ymx-vip-widget-plan-perks li::before {
    display: none;
}

/* ============================================================
   摘要区
   ============================================================ */
.ymx-vip-widget-summary {
    margin-top: 10px;
    padding: 12px 0;
    text-align: center;
}
.ymx-vip-widget-summary-invite {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.5;
}
.ymx-vip-widget-summary-text {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
}

/* ============================================================
   按钮区
   ============================================================ */
.ymx-vip-widget-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* 主按钮 — 立即开通 */
.ymx-vip-widget-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 11px 20px;
    background: linear-gradient(135deg, #f5af19, #f59e0b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(245, 175, 25, 0.3);
}
.ymx-vip-widget-buy-btn:hover {
    opacity: 0.92;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 175, 25, 0.4);
}

/* 次按钮 — 邀请码兑换 */
.ymx-vip-widget-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 11px 20px;
    background: #fff;
    color: #f59e0b;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ymx-vip-widget-invite-btn:hover {
    background: #f59e0b;
    color: #fff;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 480px) {
    .ymx-vip-widget-plan-header {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .ymx-vip-widget-plan-name {
        font-size: 14px;
    }
    .ymx-vip-widget-plan-price {
        font-size: 14px;
    }
    .ymx-vip-widget-actions {
        flex-direction: column;
    }
    .ymx-vip-widget-invite-modal-content {
        width: 95%;
    }
}

/* ============================================================
   小工具 - 积分排行榜
   ============================================================ */
.ymx-points-rank-list { list-style: none; margin: 0; padding: 8px 12px 12px; }
.ymx-points-rank-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.ymx-points-rank-item:last-child { border-bottom: none; }
.ymx-points-rank-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ymx-points-rank-item--top1 .ymx-points-rank-num { background: #f59e0b; color: #fff; }
.ymx-points-rank-item--top2 .ymx-points-rank-num { background: #94a3b8; color: #fff; }
.ymx-points-rank-item--top3 .ymx-points-rank-num { background: #d97706; color: #fff; }
.ymx-points-rank-item img { border-radius: 50%; flex-shrink: 0; }
.ymx-points-rank-name { flex: 1; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ymx-points-rank-points { color: #f5af19; font-weight: 600; flex-shrink: 0; font-size: 12px; }
.ymx-points-rank-empty { padding: 20px 12px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 600px) {
    .ymx-dashboard-cards { grid-template-columns: repeat(2, 1fr); }
    .ymx-orders-table { font-size: 11px; }
    .ymx-orders-table th, .ymx-orders-table td { padding: 6px 4px; }
}

/* ============================================================
   账号绑定模块 - 表格视图
   ============================================================ */
.ymx-bind-wrap {
    width: 100%;
}

/* 主列表视图 */
.ymx-bind-view { width: 100%; }

.ymx-bind-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ymx-bind-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e8eaed;
    white-space: nowrap;
}

.ymx-bind-table thead th:last-child {
    text-align: center;
}

.ymx-bind-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.14s;
}

.ymx-bind-table tbody tr:last-child {
    border-bottom: none;
}

.ymx-bind-table tbody tr:hover {
    background: #f8fafc;
}

.ymx-bind-table tbody td {
    padding: 14px 14px;
    vertical-align: middle;
    color: #334155;
}

/* 登录方式列 */
.ymx-bind-col-platform {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 状态小圆点 */
.ymx-bind-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ymx-bind-dot--on  { background: #22c55e; }
.ymx-bind-dot--off { background: #cbd5e1; }

/* 账号列 */
.ymx-bind-col-account { color: #475569; }
.ymx-bind-account-id  { color: #94a3b8; font-size: 12px; }
.ymx-bind-unbound-text { color: #cbd5e1; }

/* 时间列 */
.ymx-bind-col-time { color: #94a3b8; font-size: 13px; white-space: nowrap; }

/* 操作列 */
.ymx-bind-col-action { text-align: center; white-space: nowrap; }

/* 操作按钮 */
.ymx-bind-action-btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.ymx-bind-action-btn--bind {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.ymx-bind-action-btn--bind:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.ymx-bind-action-btn--unbind {
    background: transparent;
    color: #ef4444;
    border-color: #fecaca;
}
.ymx-bind-action-btn--unbind:hover {
    background: #fff1f1;
    border-color: #fca5a5;
}
.ymx-bind-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ymx-bind-na,
.ymx-bind-locked {
    font-size: 12px;
    color: #94a3b8;
}

.ymx-bind-na--app {
    cursor: help;
    border-bottom: 1px dashed #cbd5e1;
}

.ymx-bind-protect-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 6px;
}

/* ============================================================
   手机号绑定子视图
   ============================================================ */
.ymx-bind-sub-view { width: 100%; max-width: 420px; }

.ymx-bind-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ymx-bind-back-btn {
    padding: 5px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.ymx-bind-back-btn:hover { background: #e2e8f0; }

.ymx-bind-sub-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* 表单行 */
.ymx-bind-form-row {
    margin-bottom: 16px;
}
.ymx-bind-form-row--submit { margin-top: 8px; }

.ymx-bind-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 7px;
}

.ymx-bind-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.ymx-bind-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ymx-bind-code-wrap {
    display: flex;
    gap: 8px;
}
.ymx-bind-code-input { flex: 1; }

.ymx-bind-send-code-btn {
    flex-shrink: 0;
    padding: 9px 14px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
}
.ymx-bind-send-code-btn:hover:not(:disabled) { background: #2563eb; }
.ymx-bind-send-code-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.ymx-bind-submit-btn {
    width: 100%;
    padding: 11px 0;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.ymx-bind-submit-btn:hover:not(:disabled) { background: #2563eb; }
.ymx-bind-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   解绑确认弹窗
   ============================================================ */
.ymx-unbind-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}

.ymx-unbind-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.ymx-unbind-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ymx-unbind-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    width: 320px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(12px);
    transition: transform 0.22s;
}

.ymx-unbind-modal--visible .ymx-unbind-modal-box {
    transform: translateY(0);
}

.ymx-unbind-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.ymx-unbind-modal-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 20px;
}

.ymx-unbind-modal-desc strong {
    color: #1e293b;
}

.ymx-unbind-modal-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ymx-unbind-cancel-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
}

.ymx-unbind-cancel-btn:hover {
    background: #e2e8f0;
}

.ymx-unbind-confirm-btn {
    padding: 8px 18px;
    background: #ef4444;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.ymx-unbind-confirm-btn:hover {
    background: #dc2626;
}

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

/* 暗色模式 - 账号绑定 */
body.ymx-dark-mode .ymx-bind-table thead th {
    background: #1a2530;
    color: #64748b;
    border-color: #2e3a44;
}
body.ymx-dark-mode .ymx-bind-table tbody tr {
    border-color: #1e2a34;
}
body.ymx-dark-mode .ymx-bind-table tbody tr:hover {
    background: #1a2530;
}
body.ymx-dark-mode .ymx-bind-table tbody td { color: #d0d0d0; }
body.ymx-dark-mode .ymx-bind-col-account { color: #94a3b8; }
body.ymx-dark-mode .ymx-bind-col-time    { color: #64748b; }
body.ymx-dark-mode .ymx-bind-protect-tip { background: #1a2530; }
body.ymx-dark-mode .ymx-bind-action-btn--bind {
    background: #1e2a3a;
    color: #60a5fa;
    border-color: #1d4ed8;
}
body.ymx-dark-mode .ymx-bind-action-btn--bind:hover {
    background: #1d3a5a;
}
body.ymx-dark-mode .ymx-bind-action-btn--unbind {
    color: #f87171;
    border-color: #7f1d1d;
}
body.ymx-dark-mode .ymx-bind-action-btn--unbind:hover {
    background: #2a1515;
}
body.ymx-dark-mode .ymx-bind-sub-header  { border-color: #2e3a44; }
body.ymx-dark-mode .ymx-bind-sub-title   { color: #e0e0e0; }
body.ymx-dark-mode .ymx-bind-back-btn    { background: #2e3a44; color: #94a3b8; }
body.ymx-dark-mode .ymx-bind-back-btn:hover { background: #3a4a5a; }
body.ymx-dark-mode .ymx-bind-form-label  { color: #94a3b8; }
body.ymx-dark-mode .ymx-bind-form-input  {
    background: #1a2530;
    border-color: #2e3a44;
    color: #e0e0e0;
}
body.ymx-dark-mode .ymx-bind-form-input:focus {
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .ymx-bind-table { font-size: 13px; }
    .ymx-bind-table thead th,
    .ymx-bind-table tbody td { padding: 10px 8px; }
    .ymx-bind-action-btn { padding: 4px 10px; font-size: 12px; }
    .ymx-bind-sub-view  { max-width: 100%; }
    .ymx-bind-code-wrap { flex-direction: column; }
    .ymx-bind-send-code-btn { width: 100%; }
}


.ymx-download-price-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ff7043, #e53935);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.ymx-download-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: linear-gradient(135deg, #ff7043, #e53935);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.12s;
    text-decoration: none;
}

.ymx-download-pay-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ymx-download-pay-btn:active {
    transform: translateY(0);
}

/* ============================================================
   付费下载支付弹窗
   ============================================================ */
.ymx-download-pay-modal {
    padding: 4px 0 8px;
}

.ymx-pay-modal-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.ymx-pay-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e8eaed;
}

.ymx-pay-price-label {
    font-size: 14px;
    color: #64748b;
}

.ymx-pay-price-value {
    font-size: 15px;
    color: #e53935;
}

.ymx-pay-price-value strong {
    font-size: 22px;
    font-weight: 700;
}

.ymx-download-pay-methods {
    margin-bottom: 14px;
}

.ymx-download-pay-confirm {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: linear-gradient(135deg, #ff7043, #e53935);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.18s;
    margin-top: 4px;
}

.ymx-download-pay-confirm:hover { opacity: 0.88; }
.ymx-download-pay-confirm:disabled { opacity: 0.55; cursor: not-allowed; }

.ymx-pay-modal-tip {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0;
}

/* 二维码/等待区域 */
.ymx-download-pay-qr-wrap {
    margin: 14px 0 10px;
}

.ymx-pay-qr-inner {
    text-align: center;
    padding: 12px 0 6px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.ymx-pay-qr-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.ymx-pay-qr-inner img {
    display: block;
    margin: 0 auto 10px;
    border-radius: 4px;
}

.ymx-pay-qr-tip {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px;
}

/* 我的下载列表 - 付费类型徽章 */
.ymx-dl-type--pay {
    background: #fff0ee;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

/* 暗色模式适配 */
body.ymx-dark-mode .ymx-pay-price-row {
    background: #1e262e;
    border-color: #2e3a44;
}

body.ymx-dark-mode .ymx-pay-price-label { color: #94a3b8; }
body.ymx-dark-mode .ymx-pay-modal-title { color: #e0e0e0; }
body.ymx-dark-mode .ymx-pay-qr-inner {
    background: #1e262e;
    border-color: #2e3a44;
}
body.ymx-dark-mode .ymx-pay-qr-title { color: #d0d0d0; }
body.ymx-dark-mode .ymx-dl-type--pay {
    background: #3a1010;
    color: #ff8a80;
    border-color: #6a2020;
}
