/*!
 * 独立支付样式（fyui-pay-v3.css）
 * 两套作用域，互不干扰：
 *   .fy-pay*  → 文章页里的付费卡 / 已购交付区
 *   .fyp-*    → 独立支付页（整页自渲染）
 *
 * CDN 说明：多吉云按 URL 缓存，改内容要换文件名（→ fyui-pay-v4.css）。
 */

/* ============================================================
 * 一、文章页付费卡
 * ============================================================ */
.fy-paycard {
    margin: 30px 0 8px;
    padding: 24px 26px 22px;
    background: #fff;
    border: 1px solid #ece5df;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(70, 40, 22, .07);
    position: relative;
    overflow: hidden;
}

.fy-paycard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fy-c1, #ff5f33), var(--fy-c2, #ff8a52));
}

.fy-pc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fy-pc-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #c2461f;
    background: #fff1ea;
    border: 1px solid #ffd9c9;
    border-radius: 999px;
    white-space: nowrap;
}

.fy-pc-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 19px !important;
    line-height: 1.45 !important;
    font-weight: 700;
    color: #211b17 !important;
    border: 0 !important;
    background: none !important;
}

.fy-pc-title::before,
.fy-pc-title::after {
    content: none !important;
}

.fy-pc-price {
    margin: 14px 0 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--fy-c1, #ff5f33);
    font-weight: 700;
}

.fy-pc-price em {
    font-style: normal;
    font-size: 18px;
}

.fy-pc-price strong {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.5px;
}

.fy-pc-old {
    color: #b3a89f;
    font-size: 15px;
    font-weight: 400;
}

/* 权益列表：主题的 .single-content ul 会把 list-style 反超成 disc，
 * 结果主题圆点 + 我们的 ::before 橙点同时出现（实测踩过）。这里顶特异度压掉。 */
.fy-paycard .fy-pc-list,
.single-content .fy-paycard .fy-pc-list,
.article-content .fy-paycard .fy-pc-list,
.fy-paycard .fy-pc-list li,
.single-content .fy-paycard .fy-pc-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.fy-paycard .fy-pc-list {
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

.fy-paycard .fy-pc-list li {
    position: relative;
    padding-left: 22px !important;
    margin: 0 0 7px !important;
    font-size: 14.5px;
    line-height: 1.75;
    color: #514840;
}

.fy-paycard .fy-pc-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fy-c1, #ff5f33);
    opacity: .85;
}

.fy-pc-tags {
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fy-pc-tag {
    font-size: 12.5px;
    line-height: 1.6;
    color: #7a6c62;
    background: #faf7f4;
    border: 1px solid #eee7e1;
    border-radius: 8px;
    padding: 4px 10px;
}

.fy-pc-form {
    margin: 18px 0 0;
}

.fy-pc-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 15px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fy-c1, #ff5f33), var(--fy-c2, #ff8a52));
    color: #fff !important;
    font-size: 16.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    box-shadow: 0 8px 22px rgba(255, 95, 51, .28);
}

.fy-pc-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 28px rgba(255, 95, 51, .34);
}

.fy-pc-btn:active {
    transform: translateY(0);
}

.fy-pc-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: #8e837a;
}

.fy-pc-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #ece5df;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #8e837a;
}

.fy-pc-safe::before {
    content: '🔒 ';
}

/* 已购交付区 */
.fy-paydone {
    margin: 30px 0 8px;
    border: 1px solid #cfe8d6;
    background: linear-gradient(180deg, #f6fcf7, #ffffff);
    border-radius: 18px;
    padding: 22px 24px;
}

.fy-pd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4f1e7;
}

.fy-pd-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2f7d4f;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fy-pd-head strong {
    display: block;
    font-size: 16px;
    color: #1f5c39;
}

.fy-pd-sub {
    font-size: 12.5px;
    color: #6b8a75;
    margin-top: 3px;
}

.fy-pd-body {
    margin-top: 15px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid #e7efea;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 2;
    color: #2a231e;
    word-break: break-all;
}

.fy-pd-body a {
    color: var(--fy-c1, #ff5f33);
    text-decoration: underline;
    word-break: break-all;
}

.fy-pd-contact {
    margin-top: 13px;
    font-size: 13.5px;
    color: #5c6f62;
}

.fy-pd-contact strong {
    color: #c2461f;
}

/* 截断遮罩 */
.fy-pay-cut {
    height: 74px;
    margin: -30px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    position: relative;
    pointer-events: none;
}

/* 下单返回提示 */
.fy-paynotice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.fy-paynotice-ok {
    background: #f2faf4;
    border: 1px solid #c3e6cc;
    color: #1f5c39;
}

/* 开启独立支付的文章：隐藏该篇原有的 Erphpdown 购买框 */
.fyui-pay-on .erphpdown-box,
.fyui-pay-on .single-content .erphpdown-box,
.fyui-pay-on .erphpdown {
    display: none !important;
}

/* 夜间模式 */
body.night .fy-paycard,
body.dark .fy-paycard {
    background: #241d19;
    border-color: #3a2f28;
}

body.night .fy-pc-title,
body.dark .fy-pc-title {
    color: #f3ece6 !important;
}

body.night .fy-pc-list li,
body.dark .fy-pc-list li {
    color: #c9bdb4;
}

body.night .fy-pc-tag,
body.dark .fy-pc-tag {
    background: #2c231e;
    border-color: #3d312a;
    color: #b3a49a;
}

body.night .fy-paycut,
body.night .fy-pay-cut,
body.dark .fy-pay-cut {
    background: linear-gradient(180deg, rgba(36, 29, 25, 0), #241d19 82%);
}

/* 移动端 */
@media (max-width: 768px) {
    .fy-paycard {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }

    .fy-pc-price strong {
        font-size: 34px;
    }

    .fy-pc-btn {
        padding: 14px 18px;
        font-size: 15.5px;
    }

    .fy-pc-foot {
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================================
 * 二、独立支付页（整页自渲染）
 * ============================================================ */
.fyp-body {
    margin: 0;
    padding: 0;
    background: #f7f4f1;
    background-image: radial-gradient(1200px 320px at 50% -120px, #ffe9dd 0, rgba(255, 233, 221, 0) 70%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #211b17;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.fyp-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 26px 16px 44px;
}

.fyp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 20px;
}

.fyp-brand {
    font-size: 19px;
    font-weight: 800;
    color: #211b17 !important;
    text-decoration: none !important;
    letter-spacing: .3px;
}

.fyp-secure {
    font-size: 12.5px;
    color: #8e837a;
}

.fyp-main {
    background: #fff;
    border: 1px solid #ece5df;
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(70, 40, 22, .08);
    padding: 24px 24px 26px;
}

.fyp-notice {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13.5px;
}

.fyp-notice.is-ok {
    background: #f2faf4;
    border: 1px solid #c3e6cc;
    color: #1f5c39;
}

.fyp-notice.is-err {
    background: #fdf3f1;
    border: 1px solid #f6c9c1;
    color: #a9381f;
}

/* 订单摘要 */
.fyp-sum {
    padding-bottom: 18px;
    border-bottom: 1px dashed #ece5df;
}

.fyp-sum-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #211b17;
}

.fyp-sum-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12.5px;
    color: #8e837a;
}

.fyp-sum-meta b {
    color: #514840;
    font-weight: 600;
}

.fyp-sum-price {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #ff5f33;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.fyp-sum-price em {
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
}

.fyp-sum-state {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f6f1ec;
    color: #7a6c62;
}

.fyp-st-paid {
    background: #eaf7ee;
    color: #1f5c39;
}

.fyp-st-submitted,
.fyp-st-paying {
    background: #fff2e6;
    color: #b2511c;
}

.fyp-st-closed,
.fyp-st-refunded {
    background: #f0eeec;
    color: #8e837a;
}

/* 区块 */
.fyp-block {
    margin-top: 20px;
}

.fyp-block-t {
    font-size: 13px;
    font-weight: 700;
    color: #7a6c62;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* 支付方式 */
.fyp-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fyp-method {
    border: 1px solid #ece5df;
    border-radius: 14px;
    padding: 15px 16px;
    background: #fffdfb;
}

.fyp-method.is-off {
    opacity: .72;
    background: #faf8f6;
}

.fyp-m-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fyp-m-head b {
    font-size: 15px;
    color: #211b17;
}

.fyp-m-head span {
    font-size: 12.5px;
    color: #8e837a;
}

.fyp-m-tip {
    font-size: 12.5px;
    color: #8e837a;
    line-height: 1.7;
}

.fyp-m-tip a {
    color: #ff5f33;
}

/* 收款码 */
.fyp-qrs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fyp-qr {
    text-align: center;
}

.fyp-qr img {
    display: block;
    width: 148px;
    height: 148px;
    object-fit: contain;
    border: 1px solid #ece5df;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
}

.fyp-qr span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #8e837a;
}

.fyp-payinfo {
    background: #fff8f4;
    border: 1px dashed #ffd9c9;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #6b5a50;
    line-height: 1.9;
}

.fyp-amount {
    color: #ff5f33;
    font-size: 17px;
}

.fyp-no {
    cursor: pointer;
    color: #c2461f;
    border-bottom: 1px dashed #d9a08a;
    word-break: break-all;
}

/* 订单号单独一行，窄屏上不会只掉最后一个字符到下一行 */
.fyp-no-line {
    margin-top: 3px;
}

.fyp-no-line .fyp-no {
    display: inline-block;
    font-size: 14.5px;
    letter-spacing: .3px;
    line-height: 1.6;
}

.fyp-markform {
    margin-top: 12px;
}

.fyp-markform input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #e6ded7;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 9px;
    background: #fff;
    color: #211b17;
}

.fyp-markform input[type="text"]:focus {
    outline: none;
    border-color: #ffb694;
    box-shadow: 0 0 0 3px rgba(255, 95, 51, .1);
}

/* 按钮 */
.fyp-btn {
    display: inline-block;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fy-c1, #ff5f33), var(--fy-c2, #ff8a52));
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease;
    box-shadow: 0 8px 20px rgba(255, 95, 51, .26);
}

.fyp-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.fyp-btn:active {
    transform: translateY(0);
}

.fyp-btn-block {
    display: block;
    width: 100%;
    margin-top: 11px;
}

.fyp-btn-line {
    background: #fff;
    color: #514840 !important;
    border: 1px solid #e6ded7;
    box-shadow: none;
}

.fyp-btn-line:hover {
    border-color: #ffb694;
    color: #c2461f !important;
}

/* 成功 / 等待 */
.fyp-ok {
    background: linear-gradient(180deg, #f4fbf6, #ffffff);
    border: 1px solid #cfe8d6;
    border-radius: 14px;
    padding: 16px 18px;
}

.fyp-ok-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f5c39;
}

.fyp-ok-sub {
    margin-top: 5px;
    font-size: 12.5px;
    color: #6b8a75;
}

.fyp-wait {
    background: linear-gradient(180deg, #fffaf3, #ffffff);
    border: 1px solid #f2ddb4;
    border-radius: 14px;
    padding: 16px 18px;
}

.fyp-wait-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #9a6a12;
}

.fyp-wait-sub {
    margin-top: 5px;
    font-size: 13px;
    color: #8a7346;
    line-height: 1.75;
}

.fyp-deliver {
    padding: 15px 16px;
    background: #fffdfb;
    border: 1px solid #ece5df;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 2;
    word-break: break-all;
}

.fyp-deliver a {
    color: #ff5f33;
    text-decoration: underline;
    word-break: break-all;
}

.fyp-contact {
    font-size: 13.5px;
    color: #514840;
    line-height: 1.9;
    background: #faf8f6;
    border-radius: 12px;
    padding: 13px 15px;
}

.fyp-contact b {
    color: #c2461f;
}

.fyp-contact-sm {
    margin-top: 16px;
    font-size: 12.5px;
    color: #8e837a;
    background: none;
    padding: 0;
}

.fyp-note-box {
    padding: 12px 14px;
    background: #faf8f6;
    border-radius: 10px;
    font-size: 13.5px;
    color: #514840;
}

.fyp-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fyp-actions .fyp-btn {
    flex: 1 1 160px;
}

.fyp-empty {
    text-align: center;
    padding: 34px 10px;
    color: #7a6c62;
}

.fyp-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: #a2968c;
}

.fyp-foot a {
    color: #8e837a;
    text-decoration: none;
}

/* 移动端 */
@media (max-width: 560px) {
    .fyp-wrap {
        padding: 18px 12px 32px;
    }

    .fyp-main {
        padding: 18px 16px 20px;
        border-radius: 16px;
    }

    .fyp-sum-price {
        font-size: 31px;
    }

    .fyp-qr img {
        width: 132px;
        height: 132px;
    }

    .fyp-actions .fyp-btn {
        flex: 1 1 100%;
    }
}


/* ============================================================
 * 支付成功卡（v1.3.0）：版式对齐 yem569.com 的成功页
 * 大图标 → 一句话结论 → 明细表 → 加我微信 + 二维码 → 两个去向
 * ============================================================ */
.fyp-ps { text-align: center; }

.fyp-ps-ico {
    width: 64px;
    height: 64px;
    margin: 2px auto 12px;
    border-radius: 20px;
    background: linear-gradient(150deg, #eaf9f1, #f6fdf9);
    border: 1px solid #cfeadd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
}

.fyp-ps.is-svc .fyp-ps-ico {
    background: linear-gradient(150deg, #fff4ec, #fffaf6);
    border-color: #ffdcc6;
}

.fyp-ps-title {
    font-size: 23px;
    font-weight: 800;
    color: #211b17 !important;
    margin: 0 0 8px;
    line-height: 1.4;
}

.fyp-ps-sub {
    font-size: 13.5px;
    color: #7a6c62;
    line-height: 1.75;
    margin: 0 auto 18px;
    max-width: 440px;
}

.fyp-ps-table {
    border: 1px solid #f0e8e2;
    border-radius: 14px;
    background: #fdfbfa;
    text-align: left;
    overflow: hidden;
}

.fyp-ps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    font-size: 13.5px;
    border-bottom: 1px dashed #efe4dc;
}

.fyp-ps-row:last-child { border-bottom: 0; }

.fyp-ps-row span { color: #8e837a; flex: 0 0 auto; }

.fyp-ps-row b {
    color: #211b17;
    font-weight: 650;
    text-align: right;
    word-break: break-all;
}

.fyp-ps-row b.is-ok { color: #17945e; }

.fyp-ps-deliver {
    margin-top: 14px;
    text-align: left;
    border: 1px solid #f0e8e2;
    border-radius: 14px;
    padding: 14px;
}

.fyp-ps-dt {
    font-size: 12.5px;
    font-weight: 700;
    color: #8a3c0d;
    margin-bottom: 8px;
}

/* 联系块 */
.fyp-touch {
    margin-top: 16px;
    text-align: left;
    border: 1px solid #ffe0cd;
    background: linear-gradient(180deg, #fff8f3, #fffdfb);
    border-radius: 16px;
    padding: 16px;
}

.ft-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f2d9c6;
}

.ft-ico {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ffdcc6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ft-h {
    font-size: 14.5px;
    font-weight: 750;
    color: #8a3c0d;
    line-height: 1.5;
}

.ft-p {
    font-size: 12.5px;
    color: #a55b2c;
    line-height: 1.65;
    margin-top: 3px;
}

.ft-info { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.ft-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.ft-row > span { color: #a55b2c; flex: 0 0 46px; }

.ft-v {
    color: #211b17;
    font-weight: 700;
    letter-spacing: .3px;
    user-select: text;
}

.ft-copy {
    margin-left: auto;
    border: 1px solid #ffc9ae;
    background: #fff;
    color: #e2531f;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.6;
}

.ft-copy:hover { background: #fff2ea; }

.ft-no {
    margin-top: 11px;
    font-size: 12.5px;
    color: #a55b2c;
    line-height: 1.7;
}

.ft-no code {
    background: #fff;
    border: 1px dashed #f0c6a8;
    border-radius: 6px;
    padding: 2px 7px;
    color: #b8382a;
    font-size: 12.5px;
    user-select: text;
}

.ft-qrs { margin-top: 12px; }

.ft-qr {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ft-qr img {
    width: 138px;
    height: 138px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #f2e2d6;
    background: #fff;
    padding: 6px;
}

.ft-qr span { font-size: 11.5px; color: #a55b2c; }

/* 两个去向 */
.fyp-ps-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.fyp-ps-back {
    flex: 1 1 0;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5f33, #ff8a52);
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255, 95, 51, .22);
}

.fyp-ps-back.fyp-ghost {
    background: #fff;
    color: #8a3c0d !important;
    border: 1px solid #ffd9bd;
    box-shadow: none;
}

@media (max-width: 560px) {
    .fyp-ps-title { font-size: 20px; }
    .fyp-ps-row { font-size: 13px; padding: 10px 12px; }
    .fyp-ps-links { flex-direction: column; }
}


/* 没配收款码时的文字转账指引 */
.fyp-transfer {
    background: #fff8f3;
    border: 1px dashed #ffd9bd;
    border-radius: 12px;
    padding: 13px 14px;
    margin: 4px 0 14px;
}

.fyp-tr-t {
    font-size: 13.5px;
    font-weight: 700;
    color: #8a3c0d;
    margin-bottom: 4px;
}

.fyp-tr-p {
    font-size: 12.5px;
    color: #a55b2c;
    line-height: 1.75;
}

.fyp-tr-p b { color: #b8382a; }
