/**
 * RIPRO 网盘下载增强 - 样式
 * 设计基调：蓝白色系、克制留白、细描边、低饱和阴影。
 * 刻意避开高饱和多段渐变、重投影、粗圆角等"模板味"处理，靠排版层级和细节取胜。
 */

/* ==========================================================================
   1. 价格档位列表（三行：普通 / 会员 / 终身会员）
   ========================================================================== */
.widget-pay .pricing-options {
    position: relative;
    margin: 0 0 18px;
    padding: 2px 0;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    overflow: hidden;
}

.widget-pay .pricing-options .pricing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 14px;
    min-height: 42px;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6672;
    cursor: default;
    box-sizing: border-box;
}

.widget-pay .pricing-options .pricing-row + .pricing-row {
    border-top: 1px solid #f0f2f6;
}

.widget-pay .pricing-options .pricing-row .pricing-radio {
    flex: 0 0 15px;
    width: 15px;
    font-size: 14px;
    line-height: 1;
    color: #c3cbd4;
}

.widget-pay .pricing-options .pricing-row .pricing-label {
    flex: 1 1 auto;
    white-space: nowrap;
}

.widget-pay .pricing-options .pricing-row .pricing__opt {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    font-weight: 600;
    color: #3d4852;
    white-space: nowrap;
}

/* 当前身份档：淡蓝底 + 蓝色勾，形成清晰但不喧哗的强调 */
.widget-pay .pricing-options .pricing-row.is-current {
    color: #2c7be5;
    background: #f5f9ff;
}

.widget-pay .pricing-options .pricing-row.is-current .pricing-radio {
    color: #2c7be5;
}

.widget-pay .pricing-options .pricing-row.is-current .pricing__opt {
    color: #2c7be5;
}

/* 终身会员档：暖色强调，克制不刺眼 */
.widget-pay .pricing-options .pricing-row.is-boos {
    color: #d98324;
}

.widget-pay .pricing-options .pricing-row.is-boos .pricing-radio {
    color: #e69b48;
}

.widget-pay .pricing-options .pricing-row.is-boos .pricing__opt {
    color: #d98324;
}

/* 升级会员小标签 */
.widget-pay .pricing-options .pricing-row .label {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 4px;
    text-decoration: none;
}

.widget-pay .pricing-options .pricing-row .label-warning {
    color: #b56a12;
    background: #fff3e2;
}

.widget-pay .pricing-options .pricing-row .label-warning:hover,
.widget-pay .pricing-options .pricing-row .label-warning:focus {
    color: #fff;
    background: #e08a1e;
    text-decoration: none;
}

/* ==========================================================================
   2. 下载按钮（地址1 / 地址2）
   ========================================================================== */
.widget-pay .pay-box .pan-down-btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border-radius: 7px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: background-color .18s ease, -webkit-box-shadow .18s ease;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.widget-pay .pay-box .pan-down-btn .fa {
    margin-right: 6px;
}

.widget-pay .pay-box .pan-down-btn:last-child {
    margin-bottom: 0;
}

.widget-pay .pay-box .pwd + .pan-down-btn {
    margin-top: 12px;
}

.widget-pay .pay-box .pan-down-btn.disabled {
    opacity: .72;
    cursor: wait;
}

/* 一行两段：网盘名称与密码各占一半、紧挨；无权限时仅输出左侧名称按钮 */
.widget-pay .pay-box .pan-btn-group {
    position: relative;
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
}

.widget-pay .pay-box .pan-btn-group .pan-down-btn {
    flex: 1 1 50%;
    width: auto !important; /* 覆盖 btn--block 的 width:100%!important，让密码按钮同行 */
    margin: 0;
}

/* 两个按钮时紧挨成一体：相接处圆角取消 */
.widget-pay .pay-box .pan-btn-group:has(.pan-pwd) .pan-down-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 密码：右侧复制按钮（整段点击复制），样式与网盘按钮同色系 */
.widget-pay .pay-box .pan-pwd {
    flex: 1 1 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 11px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
    border-radius: 7px;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* 两个按钮时紧挨成一体：密码按钮相接处圆角取消 */
.widget-pay .pay-box .pan-btn-group:has(.pan-pwd) .pan-pwd {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 两个按钮时鼠标移到各自按钮变色：网盘按钮变深蓝、密码按钮同步变色 */
.widget-pay .pay-box .pan-btn-group .pan-down-btn:hover {
    color: #fff;
    text-decoration: none;
    background: #1787e0;
    background: -webkit-linear-gradient(left, #1787e0, #1a9ae8);
    background: linear-gradient(90deg, #1787e0, #1a9ae8);
}

.widget-pay .pay-box .pan-btn-group .pan-pwd.copypaw:hover {
    color: #fff;
    opacity: 1;
    background: #1787e0;
    background: -webkit-linear-gradient(left, #1787e0, #1a9ae8);
    background: linear-gradient(90deg, #1787e0, #1a9ae8);
}

/* 升级会员按钮：常驻引导入口，非会员可见 */
.widget-pay .pay-box .pan-vip-btn {
    display: block;
    width: 100%;
    margin: 4px 0 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #f0a93b, #e08a1e);
    border: none;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(224, 138, 30, .22);
    box-sizing: border-box;
    -webkit-transition: filter .18s ease, box-shadow .18s ease;
    transition: filter .18s ease, box-shadow .18s ease;
}

.widget-pay .pay-box .pan-vip-btn .fa {
    margin-right: 6px;
}

.widget-pay .pay-box .pan-vip-btn:hover,
.widget-pay .pay-box .pan-vip-btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(224, 138, 30, .32);
}

/* ==========================================================================
   3. 一键检测按钮（描边次级按钮）
   ========================================================================== */
.widget-pay .pay-box .pan-check-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #2c7be5;
    background: #fff;
    border: 1px solid #cfe0f8;
    border-radius: 7px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all .18s ease;
    transition: all .18s ease;
}

.widget-pay .pay-box .pan-check-btn:hover,
.widget-pay .pay-box .pan-check-btn:focus {
    color: #1f66c9;
    background: #f5f9ff;
    border-color: #2c7be5;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.widget-pay .pay-box .pan-check-btn.disabled {
    opacity: .65;
    cursor: wait;
}

.widget-pay .pay-box .pan-check-btn .fa {
    margin-right: 6px;
}

/* ==========================================================================
   4. 权限引导提示（按后台文案，登录 / 购买 / 会员）
   ========================================================================== */
.widget-pay .pay-box .pan-guide-tip {
    margin: 14px 0 0;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
    border-left: 3px solid #2c7be5;
    border-radius: 6px;
    text-align: left;
}

.widget-pay .pay-box .pan-guide--vip {
    border-left-color: #e69b48;
}

.widget-pay .pay-box .pan-guide-tip .pan-guide-tip__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: #7a8590;
    text-align: left;
}

.widget-pay .pay-box .pan-guide-tip .pan-guide-act {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #2c7be5;
    background: transparent;
    border: 1px solid #bcd6f7;
    border-radius: 5px;
    text-decoration: none;
    -webkit-transition: all .18s ease;
    transition: all .18s ease;
}

.widget-pay .pay-box .pan-guide-tip .pan-guide-act:hover,
.widget-pay .pay-box .pan-guide-tip .pan-guide-act:focus {
    color: #fff;
    background: #2c7be5;
    border-color: #2c7be5;
    text-decoration: none;
}

.widget-pay .pay-box .pan-guide--vip .pan-guide-act {
    color: #c9761f;
    border-color: #f0d2a8;
}

.widget-pay .pay-box .pan-guide--vip .pan-guide-act:hover,
.widget-pay .pay-box .pan-guide--vip .pan-guide-act:focus {
    color: #fff;
    background: #e08a1e;
    border-color: #e08a1e;
}

/* ==========================================================================
   5. 检测结果：就地展示（极简，就在检测按钮下方）
   ========================================================================== */
.widget-pay .pay-box .pan-check-result {
    margin-top: 10px;
    padding: 10px 13px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
    border-radius: 6px;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.8;
}

.widget-pay .pay-box .pan-check-result .pan-check-line {
    color: #5b6772;
}

.widget-pay .pay-box .pan-check-result .pan-check-line + .pan-check-line {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid #eceff3;
}

.widget-pay .pay-box .pan-check-result .pan-check-line .fa {
    margin-right: 7px;
}

.widget-pay .pay-box .pan-check-result .pan-check-line.is-ok {
    color: #2e9e5b;
}

.widget-pay .pay-box .pan-check-result .pan-check-line.is-fail {
    color: #d9534f;
}

/* 结果框内附带的「提交补链」链接：
   服务端输出带 pan-ticket-btn 类，会命中上面的按钮角标样式（绝对定位），
   在结果文本流内必须还原为普通行内链接，只作用于此结果框，不影响右侧真实角标按钮 */
.widget-pay .pay-box .pan-check-result a.pan-ticket-inline {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    display: inline;
    margin: 0 0 0 6px;
    padding: 0;
    font-size: 12px;
    line-height: inherit;
    color: #ff7a45;
    text-align: left;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.widget-pay .pay-box .pan-check-result a.pan-ticket-inline:hover {
    color: #f4652e;
    text-decoration: underline;
    background: none;
    border: none;
}

.widget-pay .pay-box .pan-check-result a.pan-ticket-inline .fa {
    margin-right: 0;
    font-size: 12px;
}

/* 深色模式下的就地结果 */
.zgwsnet-dark .widget-pay .pay-box .pan-check-result {
    background: #232425;
    border-color: #333438;
}

.zgwsnet-dark .widget-pay .pay-box .pan-check-result .pan-check-line {
    color: #a8adb4;
}

.zgwsnet-dark .widget-pay .pay-box .pan-check-result .pan-check-line + .pan-check-line {
    border-top-color: #303136;
}

/* ==========================================================================
   6. 深色模式适配（主题启用 zgwsnet-dark 时）
   ========================================================================== */
.zgwsnet-dark .widget-pay .pricing-options {
    background: #232425;
    border-color: #333438;
}

.zgwsnet-dark .widget-pay .pricing-options .pricing-row {
    color: #a8adb4;
}

.zgwsnet-dark .widget-pay .pricing-options .pricing-row + .pricing-row {
    border-top-color: #303136;
}

.zgwsnet-dark .widget-pay .pricing-options .pricing-row .pricing__opt {
    color: #d5d8dc;
}

.zgwsnet-dark .widget-pay .pricing-options .pricing-row.is-current {
    color: #5aa0f5;
    background: #1c2530;
}

.zgwsnet-dark .widget-pay .pay-box .pan-guide-tip {
    background: #232425;
    border-color: #333438;
}

.zgwsnet-dark .widget-pay .pay-box .pan-check-btn {
    background: transparent;
    border-color: #3a4a5e;
}

/* ==========================================================================
   文件密码：点击复制提示
   ========================================================================== */
.copypaw {
    cursor: pointer;
}

.copypaw:hover {
    text-decoration: underline dotted;
}

/* ==========================================================================
   侧栏「资源信息」小部件标题图标
   ========================================================================== */
.widget-area .widget .widget-title .fa {
    margin-right: 6px;
    color: #2b3441;
}

.zgwsnet-dark .widget-area .widget .widget-title .fa {
    color: #d5dbe3;
}
