/**
 * NewVFX Pay — 支付弹窗现代化重设计
 * 同时作用于：父文档 layui 外壳(.nvfx-pay-layer) 与 同源 iframe 内容(buy.php/checkout.php)。
 * 深色模式由 html[data-theme="dark"] 驱动（iframe 的 data-theme 由 newvfx-pay-modal.js 从父层同步）。
 * 仅覆盖支付弹窗，不影响其它 layui 弹层。由 newvfx-pay 插件独立加载，插件升级不受影响。
 */

/* ============ 父层：卡片外壳 ============ */
.layui-layer.nvfx-pay-layer {
    background: #ffffff !important;
    border-radius: 22px !important;
    corner-shape: squircle;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .08) !important;
    overflow: hidden;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}
html[data-theme="dark"] .layui-layer.nvfx-pay-layer {
    background: #2c2c2e !important;
    border-color: #3a3a3c;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .4) !important;
}
.nvfx-pay-layer .layui-layer-content { overflow: visible; height: auto !important; }

/* 背景遮罩：纯压暗。不用 backdrop-filter —— Safari 移除磨砂层后会在右下角残留模糊快照（用户实测“残影”） */
.layui-layer-shade.nvfx-pay-shade {
    opacity: 1 !important;
    background: rgba(0, 0, 0, .32) !important;
    animation: nvfx-pay-shade-in 240ms ease both;
}
html[data-theme="dark"] .layui-layer-shade.nvfx-pay-shade { background: rgba(0, 0, 0, .5) !important; }
@keyframes nvfx-pay-shade-in { from { opacity: 0; } to { opacity: 1; } }
/* 卡片进出场：纯 opacity 淡入淡出，不用 scale/translate（避免与居中 translate 打架产生空间残影） */
.layui-layer.nvfx-pay-layer.layer-anim { animation: nvfx-pay-card-in 240ms cubic-bezier(.32, .72, 0, 1) both !important; }
.layui-layer.nvfx-pay-layer.layer-anim-close { animation: nvfx-pay-card-out 180ms ease both !important; }
@keyframes nvfx-pay-card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nvfx-pay-card-out { from { opacity: 1; } to { opacity: 0; } }

/* 关闭按钮：去掉雪碧图，画一个干净的 ×；setwin 归零使 close 绝对锚定卡片右上角 */
.nvfx-pay-layer .layui-layer-setwin { position: absolute !important; top: 0 !important; right: 0 !important; width: 0 !important; height: 0 !important; }
.nvfx-pay-layer .layui-layer-close {
    position: absolute !important;
    display: block !important;
    background: none !important;
    width: 34px !important;
    height: 34px !important;
    top: 4px !important;
    right: 4px !important;
    border-radius: 50%;
    opacity: 1 !important;
    transition: background .15s ease;
    z-index: 5;
}
.nvfx-pay-layer .layui-layer-close::before,
.nvfx-pay-layer .layui-layer-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: #9a9aa0;
    transition: background .15s ease;
}
.nvfx-pay-layer .layui-layer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.nvfx-pay-layer .layui-layer-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.nvfx-pay-layer .layui-layer-close:hover { background: rgba(0, 0, 0, .06); }
.nvfx-pay-layer .layui-layer-close:hover::before,
.nvfx-pay-layer .layui-layer-close:hover::after { background: #1c1c1e; }
html[data-theme="dark"] .nvfx-pay-layer .layui-layer-close::before,
html[data-theme="dark"] .nvfx-pay-layer .layui-layer-close::after { background: #a1a1a6; }
html[data-theme="dark"] .nvfx-pay-layer .layui-layer-close:hover { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .nvfx-pay-layer .layui-layer-close:hover::before,
html[data-theme="dark"] .nvfx-pay-layer .layui-layer-close:hover::after { background: #f5f5f7; }

/* ============ iframe 内容：购买信息 ============ */
.newvfx-pay-table { padding: 16px 20px 16px !important; }
.newvfx-pay-table .item {
    padding: 0 !important;
    margin: 0 0 10px !important;
    border: none !important;
    color: #6e6e73 !important;
    font-size: 13px !important;
    line-height: 1.5;
}
.newvfx-pay-table .item:last-child { margin-bottom: 4px !important; }
.newvfx-pay-table .item label {
    display: block;
    color: #86868b !important;
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: .02em;
    margin-bottom: 6px;
}
.newvfx-pay-table .item label span { color: #a1a1a6 !important; font-weight: 400; }
.newvfx-pay-table .item .tit {
    color: #1c1c1e !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 14px;
    padding: 12px 14px;
    box-sizing: border-box;
}
/* 商品行小购物袋图标（mask 随文字色） */
.newvfx-pay-table .item:not(.item-price) .tit::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 7px;
    vertical-align: -2px;
    background: currentColor;
    opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-theme="dark"] .newvfx-pay-table .item { color: #a1a1a6 !important; }
html[data-theme="dark"] .newvfx-pay-table .item label { color: #a1a1a6 !important; }
html[data-theme="dark"] .newvfx-pay-table .item label span { color: #8e8e93 !important; }
html[data-theme="dark"] .newvfx-pay-table .item .tit { color: #f5f5f7 !important; }
/* 暗夜白底修复：.tit 卡片底/表格正文/划线原价 浅色基样式为白底黑字，深色须一并覆盖 */
html[data-theme="dark"] .newvfx-pay-table .item .tit { background:#2c2c2e !important; border-color: rgba(255,255,255,.08) !important; }
html[data-theme="dark"] .newvfx-pay-table { color:#f5f5f7 !important; }
html[data-theme="dark"] .newvfx-pay-table td span, html[data-theme="dark"] .newvfx-pay-table td del { color:#8e8e93 !important; }

/* 价格行：小计 + 大号金额 + RMB */
.newvfx-pay-table .item-price .tit {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b !important;
}
.newvfx-pay-table .item-price .tit span { font-size: 13px; color: #86868b !important; }
.newvfx-pay-table .item-price .tit t,
.newvfx-pay-table .item-price .tit .login {
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    color: #1c1c1e !important;
    line-height: 1.1;
}
.newvfx-pay-table .item-price .tit del { font-size: 12px; font-weight: 400; color: #a1a1a6 !important; }
html[data-theme="dark"] .newvfx-pay-table .item-price .tit,
html[data-theme="dark"] .newvfx-pay-table .item-price .tit span { color: #a1a1a6 !important; }
html[data-theme="dark"] .newvfx-pay-table .item-price .tit t,
html[data-theme="dark"] .newvfx-pay-table .item-price .tit .login { color: #f5f5f7 !important; }

/* 账户余额行：顶部分隔线 */
.newvfx-pay-table .item:has(#newvfx_pay_left) {
    border-top: 1px solid rgba(0, 0, 0, .07) !important;
    padding-top: 15px !important;
    margin-top: 2px !important;
}
.newvfx-pay-table .item:has(#newvfx_pay_left)::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: -2px;
    background: currentColor;
    opacity: .55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.newvfx-pay-table .item:has(#newvfx_pay_left) #newvfx_pay_left { font-weight: 600; color: inherit !important; }
html[data-theme="dark"] .newvfx-pay-table .item:has(#newvfx_pay_left) { border-top-color: #3a3a3c !important; }

/* ============ 支付方式按钮 ============ */
/* 渠道区/余额钮内联留白收紧（buy.php 内联 padding-top:20px / margin-top:12px） */
.newvfx-pay-table .item > div[style*="padding-top:20px"] { padding-top: 12px !important; }
.newvfx-pay-table .item > div[style*="margin-top: 12px"] { margin-top: 10px !important; }
.erphp-justbuy {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    padding: 0 !important;
}
.erphp-justbuy::after { display: none !important; }
.erphp-justbuy a.newvfx-pay-jump,
.erphp-justbuy a.newvfx-pay-jump3 {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0 !important;
    height: 48px;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    corner-shape: squircle;
    font-size: 14px !important;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.erphp-justbuy a .erphp-iconfont {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
}
.erphp-justbuy a.pmt-wx     { background: #07c160 !important; }
.erphp-justbuy a.pmt-ali    { background: #1677ff !important; }
.erphp-justbuy a.pmt-qq     { background: #12b7f5 !important; }
.erphp-justbuy a.pmt-ut     { background: #26a17b !important; }
.erphp-justbuy a.pmt-stripe { background: #635bff !important; }
.erphp-justbuy a.pmt-pp     { background: #003087 !important; }
.erphp-justbuy a.pmt-ecpay,
.erphp-justbuy a.pmt-newebpay { background: #5a6acf !important; }
.erphp-justbuy a.pmt-wx { box-shadow: 0 3px 10px rgba(7, 193, 96, .28); }
.erphp-justbuy a.pmt-ali { box-shadow: 0 3px 10px rgba(22, 119, 255, .28); }
.erphp-justbuy a.pmt-stripe { box-shadow: 0 3px 10px rgba(99, 91, 255, .28); }
.erphp-justbuy a.pmt-pp { box-shadow: 0 3px 10px rgba(0, 48, 135, .28); }
.erphp-justbuy a:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.erphp-justbuy a:active { transform: translateY(0); filter: brightness(.94); box-shadow: none; }

/* 余额支付：主 CTA */
.erphp-creditbuy { margin-top: 12px; }
.erphp-creditbuy a.newvfx-pay-btn,
a.ss-button.newvfx-pay-btn.do-newvfx-pay-pay,
a.ss-button.newvfx-pay-btn.do-newvfx-pay-pay3 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 16px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    corner-shape: squircle;
    background: #f5653f !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(245, 101, 63, .28);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.erphp-creditbuy a.newvfx-pay-btn:hover,
a.ss-button.newvfx-pay-btn.do-newvfx-pay-pay:hover,
a.ss-button.newvfx-pay-btn.do-newvfx-pay-pay3:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 101, 63, .35);
}
/* 弹窗底部信任脚注（仅 DOM 弹窗内） */
.nvfx-fm-content .newvfx-pay-table::after {
    content: '🔒 支付信息加密传输';
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .02em;
    color: #a1a1a6;
}
html[data-theme="dark"] .nvfx-fm-content .newvfx-pay-table::after { color: #8e8e93; }
/* btn-hide 默认隐藏由 buy.php 内联 display:none 控制；此处不再用 !important，以免挡住插件 JS 优惠码后的 .show() 交换 */

/* ============ 表单输入（数量/邮箱/优惠码等） ============ */
.newvfx-pay-table input[type="text"],
.newvfx-pay-table input[type="email"],
.newvfx-pay-table input[type="number"],
.newvfx-pay-table .erphp-faka-input,
.newvfx-pay-table textarea {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    border-radius: 10px !important;
    color: #1c1c1e !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.newvfx-pay-table input:focus,
.newvfx-pay-table textarea:focus {
    border-color: #1677ff !important;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .15) !important;
}
html[data-theme="dark"] .newvfx-pay-table input[type="text"],
html[data-theme="dark"] .newvfx-pay-table input[type="email"],
html[data-theme="dark"] .newvfx-pay-table input[type="number"],
html[data-theme="dark"] .newvfx-pay-table .erphp-faka-input,
html[data-theme="dark"] .newvfx-pay-table textarea {
    background: #242426 !important;
    border-color: #3a3a3c !important;
    color: #f5f5f7 !important;
}
.erphp-faka-num { display: inline-flex; align-items: center; gap: 0; }
.erphp-faka-num a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    color: #1c1c1e !important;
    font-size: 18px; text-decoration: none !important;
}
.erphp-faka-num a.erphp-faka-minus { border-radius: 10px 0 0 10px; }
.erphp-faka-num a.erphp-faka-plus  { border-radius: 0 10px 10px 0; }
.erphp-faka-num input { width: 56px; text-align: center; border-radius: 0 !important; border-left: none !important; border-right: none !important; }
html[data-theme="dark"] .erphp-faka-num a { background: #242426 !important; border-color: #3a3a3c !important; color: #f5f5f7 !important; }

/* 提示/错误信息 */
.newvfx-pay-table .login-tips,
.newvfx-pay-table .error { font-size: 13px !important; color: #86868b !important; }
.newvfx-pay-table .error { color: #e5484d !important; }
html[data-theme="dark"] .newvfx-pay-table .login-tips { color: #a1a1a6 !important; }

/* 窄屏适配 */
@media (max-width: 420px) {
    .newvfx-pay-table .item-price .tit t,
    .newvfx-pay-table .item-price .tit .login { font-size: 25px; }
}

/* ============ 支付触发按钮：文案改为 Pay + 钱包图标（父页面） ============
   该钮在资源页显示"下载"、测试页显示"立即购买"，统一呈现为 "Pay" + 图标。
   font-size:0 隐藏原文案，::before 图标 + ::after "Pay"，纯 CSS、插件升级安全。 */
.newvfx-pay-iframe.newvfx-pay-buy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0 !important;
    line-height: 1;
}
.newvfx-pay-iframe.newvfx-pay-buy::before {
    content: "";
    width: 18px; height: 18px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.newvfx-pay-iframe.newvfx-pay-buy::after {
    content: "Pay";
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .3px;
}

/* ============ 页面"服务信息"购买区块（Apple 连续圆角卡片） ============ */
/* 外层大边框：苹果式 squircle 圆角 + 发丝描边 + 柔和投影 */
fieldset.newvfx-pay {
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 20px !important;
    corner-shape: squircle;
    background: #ffffff !important;
    padding: 18px 20px 20px !important;
    margin: 0 0 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
}
fieldset.newvfx-pay > legend { font-size: 15px; font-weight: 600; color: #1c1c1e; padding: 0 10px; margin-left: -6px; }
html[data-theme="dark"] fieldset.newvfx-pay { border-color: #3a3a3c !important; background: #1c1c1e !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); }
html[data-theme="dark"] fieldset.newvfx-pay > legend { color: #f5f5f7; }
fieldset.newvfx-pay fieldset.newvfx-pay-child {
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 16px !important;
    corner-shape: squircle;
    background: #fbfbfd !important;
    padding: 16px 20px 18px !important;
    margin: 0 0 14px !important;
    color: #1c1c1e;
    font-size: 14px;
    line-height: 1.6;
}
fieldset.newvfx-pay fieldset.newvfx-pay-child legend {
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1e;
    padding: 0 8px;
    margin-left: -4px;
}
fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-price {
    font-size: 24px;
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -.5px;
    margin: 0 2px;
}
html[data-theme="dark"] fieldset.newvfx-pay fieldset.newvfx-pay-child {
    border-color: #3a3a3c !important;
    background: #242426 !important;
    color: #f5f5f7;
}
html[data-theme="dark"] fieldset.newvfx-pay fieldset.newvfx-pay-child legend,
html[data-theme="dark"] fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-price { color: #f5f5f7; }

/* 购买钮：现代支付主 CTA（绿色渐变实心 + 阴影 + 悬停上浮） */
.newvfx-pay-iframe.newvfx-pay-buy {
    height: 40px;
    padding: 0 24px !important;
    margin-left: 12px;
    border-radius: 12px !important;
    corner-shape: squircle;
    background: linear-gradient(135deg, #07c160, #05a050) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(7, 193, 96, .28);
    vertical-align: middle;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.newvfx-pay-iframe.newvfx-pay-buy:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(7, 193, 96, .36);
}
.newvfx-pay-iframe.newvfx-pay-buy:active { transform: translateY(0); filter: brightness(.97); }

/* 升级会员钮：金色描边次级钮（VIP 质感，非扁平鲑鱼红） */
fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-vip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px !important;
    margin-left: 12px;
    border-radius: 12px !important;
    corner-shape: squircle;
    background: transparent !important;
    border: 1.5px solid #d4a017 !important;
    color: #a07818 !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}
fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-vip:hover {
    background: rgba(212, 160, 23, .1) !important;
    transform: translateY(-1px);
}
html[data-theme="dark"] fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-vip {
    border-color: #d4a83a !important;
    color: #f0c850 !important;
}
html[data-theme="dark"] fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-vip:hover {
    background: rgba(240, 200, 80, .12) !important;
}

/* 窄屏：按钮换行铺满 */
@media (max-width: 480px) {
    fieldset.newvfx-pay fieldset.newvfx-pay-child .newvfx-pay-vip,
    .newvfx-pay-iframe.newvfx-pay-buy {
        margin: 10px 10px 0 0;
    }
}

/* ============ fetch 现代弹窗（nvfxFetchModal，取代 layui iframe） ============
   内容注入当前页 DOM，主题字体/深色模式天然继承；此处仅补弹窗容器与下载页现代化。 */
.nvfx-fm-layer { max-width: 94vw !important; }
.nvfx-fm-layer .layui-layer-title {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
    color: #1c1c1e !important;
    font-weight: 600;
    font-size: 15px;
}
html[data-theme="dark"] .nvfx-fm-layer .layui-layer-title { border-bottom-color: #3a3a3c !important; color: #f5f5f7 !important; }
.nvfx-fm-layer .layui-layer-content { height: auto !important; overflow: auto !important; max-height: calc(86vh - 52px); padding: 0 !important; }
.nvfx-fm-loading, .nvfx-fm-error { padding: 56px 20px; text-align: center; color: #86868b; font-size: 14px; }
/* 加载中小动画：圆环旋转（替代「加载中…」文字） */
.nvfx-fm-spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(0,0,0,.08); border-top-color: #07c160; animation: nvfx-fm-spin .7s linear infinite; }
html[data-theme="dark"] .nvfx-fm-spinner { border-color: rgba(255,255,255,.14); border-top-color: #30d158; }
@keyframes nvfx-fm-spin { to { transform: rotate(360deg); } }
.nvfx-fm-error a { color: #1677ff; margin-left: 4px; }
html[data-theme="dark"] .nvfx-fm-loading, html[data-theme="dark"] .nvfx-fm-error { color: #a1a1a6; }
.nvfx-fm-content { font-family: inherit; color: #1c1c1e; }
html[data-theme="dark"] .nvfx-fm-content { color: #f5f5f7; }

/* ---- 下载弹窗 · 文件交付卡片设计（2026-11 重设计：卡片化下载行/品牌绿/中性mono芯片/胶囊复制钮/插画框，明暗双主题；纯 CSS，不动任何功能类名与钩子） ---- */
.nvfx-fm-content #newvfx-pay-download {
    font-family: inherit;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 20px 20px 24px;
    text-align: left;
    box-sizing: border-box;
    font-size: 14px;
}
/* 分区标题：绿色小竖条 + 微标签 */
.nvfx-fm-content #newvfx-pay-download .title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #86868b;
    margin: 22px 0 10px;
}
.nvfx-fm-content #newvfx-pay-download .title:first-child { margin-top: 0; font-size: 13px; color: #1c1c1e; }
.nvfx-fm-content #newvfx-pay-download .title span::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: #07c160;
    margin-right: 8px;
    vertical-align: -1px;
}
.nvfx-fm-content #newvfx-pay-download .title span::after { display: none; }
/* 下载行 = 文件卡片（悬停微亮绿边） */
.nvfx-fm-content #newvfx-pay-download .msg p {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: left;
    margin: 0 0 10px;
    padding: 12px 14px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 14px;
    font-size: 13px;
    color: #6e6e73;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nvfx-fm-content #newvfx-pay-download .msg p:hover { border-color: rgba(7, 193, 96, .35); box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.nvfx-fm-content #newvfx-pay-download .msg p .tit {
    flex: 1;
    min-width: 0;
    color: #1c1c1e;
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}
/* 文件名前的小文件图标（mask 随文字色） */
.nvfx-fm-content #newvfx-pay-download .msg p .tit::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 7px;
    vertical-align: -2px;
    background: currentColor;
    opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* 下载按钮：品牌绿 squircle */
.nvfx-fm-content #newvfx-pay-download .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 96px;
    margin: 0;
    padding: 9px 16px;
    border-radius: 10px;
    corner-shape: squircle;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #07c160, #05a050) !important;
    box-shadow: 0 3px 10px rgba(7, 193, 96, .22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.nvfx-fm-content #newvfx-pay-download .link:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(7, 193, 96, .35); }
.nvfx-fm-content #newvfx-pay-download .link:active { transform: scale(.96); }
.nvfx-fm-content #newvfx-pay-download .link .nvfx-dl-ico { flex: none; }
/* 提取码/激活码芯片：中性 mono，去掉与品牌冲突的橙色虚线 */
.nvfx-fm-content .newvfx-pay-code {
    background: rgba(0, 0, 0, .05);
    border: none;
    border-radius: 7px;
    padding: 4px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #3a3a3c;
    letter-spacing: .02em;
}
/* 复制 = 胶囊幽灵按钮 + 复制小图标 */
.nvfx-fm-content .newvfx-pay-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #3a3a3c;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    background: transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nvfx-fm-content .newvfx-pay-copy::before {
    content: '';
    width: 12px;
    height: 12px;
    background: currentColor;
    opacity: .7;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nvfx-fm-content .newvfx-pay-copy:hover { color: #07c160; border-color: rgba(7, 193, 96, .5); background: rgba(7, 193, 96, .07); }
/* 隐藏信息/复制文本区 = 内嵌卡片 */
.nvfx-fm-content .hidden-content {
    font-size: 13px;
    line-height: 1.7;
    color: #3a3a3c;
    word-break: break-all;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 14px;
    padding: 12px 14px;
}
.nvfx-fm-content .hidden-content > div { margin: 4px 0; }
.nvfx-fm-content .hidden-content p {
    margin: 0 0 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #6e6e73;
}
/* 居中的「复制文本」→ 整宽浅绿行动按钮 */
.nvfx-fm-content .hidden-content div[style*="text-align:center"] .newvfx-pay-copy {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(7, 193, 96, .08);
    border-color: transparent;
    color: #07c160;
    font-size: 13px;
    font-weight: 600;
}
.nvfx-fm-content .hidden-content div[style*="text-align:center"] .newvfx-pay-copy:hover { background: rgba(7, 193, 96, .15); }
/* 广告插画：圆角 + 细边 + 轻投影，像一张装裱好的预览图 */
.nvfx-fm-content #newvfx-pay-download img,
.nvfx-fm-content .newvfx-pay-download-da img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
/* ---- 深色主题 ---- */
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .title { color: #8e8e93; }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .title:first-child { color: #f5f5f7; }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .title span::before { background: #30d158; }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .msg p { background: #2c2c2e; border-color: rgba(255, 255, 255, .08); color: #a1a1a6; }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .msg p:hover { border-color: rgba(48, 209, 88, .4); box-shadow: none; }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download .msg p .tit { color: #f5f5f7; }
html[data-theme="dark"] .nvfx-fm-content .newvfx-pay-code { background: rgba(255, 255, 255, .1); color: #d1d1d6; }
html[data-theme="dark"] .nvfx-fm-content .newvfx-pay-copy { color: #d1d1d6; border-color: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .nvfx-fm-content .newvfx-pay-copy:hover { color: #30d158; border-color: rgba(48, 209, 88, .5); background: rgba(48, 209, 88, .1); }
html[data-theme="dark"] .nvfx-fm-content .hidden-content { background: #2c2c2e; border-color: rgba(255, 255, 255, .08); color: #d1d1d6; }
html[data-theme="dark"] .nvfx-fm-content .hidden-content p { color: #a1a1a6; }
html[data-theme="dark"] .nvfx-fm-content .hidden-content div[style*="text-align:center"] .newvfx-pay-copy { background: rgba(48, 209, 88, .12); color: #30d158; }
html[data-theme="dark"] .nvfx-fm-content .hidden-content div[style*="text-align:center"] .newvfx-pay-copy:hover { background: rgba(48, 209, 88, .2); }
html[data-theme="dark"] .nvfx-fm-content #newvfx-pay-download img,
html[data-theme="dark"] .nvfx-fm-content .newvfx-pay-download-da img { border-color: rgba(255, 255, 255, .1); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
/* 等待页倒计时 */
.nvfx-fm-content #time { font-weight: 700; color: #f5653f; }
