/* 资源站自定义样式 */

/* 网盘链接卡片 */
.resource-pan-card {
    background: #f7f9fc;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}
.resource-pan-card .pan-name {
    font-weight: 700;
    color: #2171ec;
    display: block;
    margin-bottom: 8px;
}
.resource-pan-card .pan-link a {
    color: #2171ec;
    word-break: break-all;
}

/* 付费遮罩 */
.resource-pay-mask {
    text-align: center;
    padding: 40px 20px;
    background: #fafbfc;
    border: 2px dashed #e0e4ea;
    border-radius: 12px;
    margin: 16px 0;
}
.resource-pay-mask .mask-icon {
    font-size: 40px;
}
.resource-pay-mask .mask-text {
    margin: 12px 0;
    color: #666;
}
.resource-pay-mask .mask-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff5a00;
    margin: 12px 0;
}
.resource-buy-btn {
    display: inline-block;
    background: #2171ec;
    color: #fff;
    padding: 10px 32px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}
.resource-buy-btn:hover {
    background: #1a5fd0;
    color: #fff;
}

/* 支付弹窗 */
.resource-pay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.resource-pay-modal .modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 90%;
}
.resource-pay-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.resource-pay-modal .qr-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    display: block;
}

/* 收入看板 */
.resource-dashboard {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}
.resource-dashboard .stat-box {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
}
.resource-dashboard .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #2171ec;
}

/* 用户中心 */
.resource-user-center {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 移动端适配（<768px） */
@media (max-width: 768px) {
    .resource-pay-mask .mask-price {
        font-size: 22px;
    }
    .resource-pay-modal .modal-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        padding-bottom: 40px;
    }
    .resource-buy-btn {
        width: 100%;
        padding: 12px;
    }
    .resource-dashboard {
        flex-direction: column;
    }
}

/* 支付方式选择 */
.resource-pay-modal .pay-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}
.resource-pay-modal .pay-alipay { background: #1677ff; }
.resource-pay-modal .pay-alipay:hover { background: #0f66d6; }
.resource-pay-modal .qr-wrap { min-height: 200px; display: flex; align-items: center; justify-content: center; }

/* 认证表单（登录/注册/找回密码） */
.resource-auth { max-width: 420px; margin: 0 auto; }
.resource-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.resource-auth-tab {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #e5e9f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.resource-auth-tab.active { background: #2171ec; border-color: #2171ec; color: #fff; }
.resource-auth-box input[type="text"],
.resource-auth-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
}
.resource-auth-box .resource-send-code {
    margin-top: 6px;
    padding: 8px 14px;
    border: 1px solid #2171ec;
    background: #fff;
    color: #2171ec;
    border-radius: 8px;
    cursor: pointer;
}

/* 已登录态认证页卡片 */
.resource-auth-logged-in {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 32px 20px;
}
.resource-auth-logged-in .logged-in-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.resource-auth-logged-in .resource-auth-logout {
    color: #888;
    font-size: 14px;
    text-decoration: underline;
}
.resource-auth-logged-in .resource-auth-logout:hover {
    color: #2171ec;
}

/* 资源文件下载按钮 */
.resource-download-wrap {
    margin: 12px 0;
}
.resource-download-btn {
    background: #16a34a;
}
.resource-download-btn:hover {
    background: #15803d;
}
.resource-file-meta {
    color: #888;
    font-size: 13px;
    margin-left: 8px;
    word-break: break-all;
}

/* 作者/时间显隐（post_class 类控制，详情页与列表页共用） */
.resource-hide-author .posted-by { display: none; }
.resource-hide-date .posted-on { display: none; }
.resource-hide-author.resource-hide-date .entry-meta { display: none; }

/* 底部版权行暂时隐藏（后续放备案号时在 Customizer→页脚→底部行里配置并删除本条） */
.site-bottom-footer-wrap {
    display: none;
}
