/*
 * 子比主题 9.2 付费区块适配补丁
 *
 * 说明：9.2 对主题的付费盒子结构做了较大调整：
 * 1. 价格输出改为 .price-box + .em3x（3em 特大字号），并新增原价、促销标签；
 * 2. 会员价改为 .vip-price-buts / .vip-price（.vip-price 全局有 width:100%/50% 等规则）；
 * 3. 主题全局 .price-box 带 text-align:center，放进皮肤后会把价格行挤歪。
 *
 * 本文件只在皮肤的容器内做覆盖，不影响主题其它位置的样式。
 */

/* ---------------------------------------------
 * 一、桌面端布局补充
 * ------------------------------------------ */
@media screen and (min-width: 801px) {
    .ceo-shop1-main {
        overflow: hidden;
        padding-bottom: 20px;
    }

    /* 三栏布局：左图 24.3% / 中栏 47.36% / 右侧作者卡占剩余 */
    .ceoshop-sall {
        float: right;
        width: calc(28.3% - 40px);
        max-width: 320px;
        margin: 20px 20px 0 0;
        font-size: 14px;
    }

    .ceoshop-sall .user-card {
        margin: 0;
    }
}

/* ---------------------------------------------
 * 二、价格
 * ------------------------------------------ */
.ceo-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    line-height: 1.2;
    color: #ec1c2b;
}

.ceo-price .ceo-price-mark {
    font-size: 14px;
    margin-right: 2px;
}

.ceo-price .ceo-price-now {
    font-size: 24px;
    font-weight: 700;
    color: #ec1c2b;
    letter-spacing: -.5px;
}

.ceo-price .ceo-price-original {
    position: relative;
    margin-left: 8px;
    font-size: 13px;
    color: #9aa0a6;
    text-decoration: line-through;
}

.ceo-price .ceo-price-tag {
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
}

.ceo-price .ceo-price-unit {
    margin-left: 3px;
    font-size: 12px;
    color: #ff6f06;
}

.ceo-price.ceo-price-vip .badg {
    padding: 4px 12px;
    font-size: 13px;
    color: #866127;
    background: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
}

.ceo-price.ceo-price-points {
    color: #ff6f06;
}

.ceo-price.ceo-price-points .ceo-price-now {
    color: #ff6f06;
}

/* 皮肤价格行：价格 + 会员价 + 文案，靠基线对齐 */
.ceo-shop1-zl .sellP {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.ceo-shop1-zl .sellP em {
    flex: 1 1 100%;
    margin-top: 2px;
}

/* 会员价：9.2 主题输出 .vip-price-buts > .vip-price，需要收成皮肤的小按钮样式 */
.ceo-shop1-zl .sellP .vip-price-buts,
.ceo-shop1-zl .app_shop_jg .discount .vip-price-buts {
    display: inline-flex;
    width: auto;
    gap: 6px;
    vertical-align: middle;
}

.ceo-shop1-zl .sellP .vip-price,
.ceo-shop1-zl .app_shop_jg .discount .vip-price {
    width: auto !important;
    padding: 2px 10px;
    border: 1px solid rgba(255, 108, 0, .25);
    border-radius: 4px;
    background: rgba(255, 108, 0, .06);
    color: #ff6c00;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    white-space: nowrap;
}

.ceo-shop1-zl .sellP .vip-price:hover,
.ceo-shop1-zl .app_shop_jg .discount .vip-price:hover {
    background: rgba(255, 108, 0, .12);
    color: #ff6c00;
}

.ceo-shop1-zl .sellP .vip-price .em12,
.ceo-shop1-zl .app_shop_jg .discount .vip-price .em12 {
    display: inline;
    font-size: 1.1em;
}

/* 旧版会员价下拉结构（仅旧主题时出现），保留基本样式 */
.ceo-shop1-zl .discount {
    display: inline-block;
    position: relative;
    margin: 0 10px;
}

.ceo-shop1-zl .discount a {
    color: #ff2a00;
}

.ceo-shop1-zl .discount:hover .box {
    display: block;
}

/* ---------------------------------------------
 * 三、图片角标（原价/折扣标签）
 * ------------------------------------------ */
.ceo-shop1-zl .course-img {
    position: relative;
}

.ceo-shop1-zl .ceo-img-discount {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
}

/* ---------------------------------------------
 * 四、购买按钮组
 * ------------------------------------------ */
.ceo-shop1-zl .priceBtn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ceo-shop1-zl .priceBtn .mob {
    flex: 1 1 100%;
}

.ceo-shop1-zl .priceBtn > .but,
.ceo-shop1-zl .priceBtn > a.but {
    flex: 0 0 auto;
    margin: 0;
}

.ceo-shop1-zl .ceo-shop1-dzsc {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

/* 主题 9.2 的购买按钮带 RefreshModal 交互，保持按钮高度一致 */
.ceo-shop1-zl .priceBtn .but {
    padding: .55em 1.6em;
    line-height: 1.4;
}

/* ---------------------------------------------
 * 五、详情 / 属性
 * ------------------------------------------ */
.ceo-shop1-zl .pay-details {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    background: var(--muted-border-color, rgba(136, 136, 136, .06));
    font-size: 13px;
}

/* ---------------------------------------------
 * 六、移动端
 * ------------------------------------------ */
@media screen and (max-width: 800px) {
    /* 背景改为插件内渐变，不再依赖已失效的第三方图片外链 */
    .ceo_app_shop .app_shop_mk {
        background: linear-gradient(135deg, #3b4150 0%, #23262d 100%);
    }

    .ceo_app_shop .app_shop_jg_se .ceo-price .ceo-price-now {
        font-size: 24px;
    }

    .ceo_app_shop .app_shop_jg_se .ceo-price .ceo-price-mark {
        font-size: 13px;
    }

    .ceo_app_shop .app_shop_jg .discount {
        margin-left: 8px;
    }

    .ceo_app_shop .app_shop_jg .discount .vip-price {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        background: rgba(255, 108, 0, .1);
        color: #ff6c00;
        font-size: 12px;
        white-space: nowrap;
    }

    /* 移动端按钮区：主按钮与升级会员并排，演示按钮单独一行 */
    .ceo_app_shop .app_shop_an .xz {
        display: flex;
        gap: 10px;
    }

    .ceo_app_shop .app_shop_an .xz > a {
        flex: 1 1 0;
        width: auto !important;
        float: none;
        margin: 0;
    }

    .ceo_app_shop .app_shop_an .xz > a:first-child {
        flex: 2 1 0;
    }

    .ceo_app_shop .app_shop_an .xz .pay-extra-hide {
        flex: 1 1 100%;
        display: none;
    }

    .ceo_app_shop .ceo-price .ceo-price-tag,
    .ceo_app_shop .ceo-price .ceo-price-original {
        font-size: 12px;
    }

    .ceo_app_shop .ceo_pay_extra,
    .ceo_app_shop .ceo-pay-extra {
        padding: 0 20px 20px;
        background: var(--main-bg-color);
    }
}

/* ---------------------------------------------
 * 三、1.0.5：免费登录可见盒子 & 已购买盒子的价格行
 *
 * 9.2 全局 .price-box 带 text-align:center 与 3em 特大字号，
 * 皮肤里改用自有的 .ceo-price-box 承载 .ceo-price，避免被主题样式挤歪。
 * ------------------------------------------ */
.ceo-price-box {
    margin: 12px 0;
}

.ceo-price-box .ceo-price {
    display: inline-flex;
}

@media screen and (max-width: 800px) {
    .ceo-price-box {
        margin: 8px 0;
    }

    .ceo-price-box .ceo-price .ceo-price-now {
        font-size: 20px;
    }
}

/* ==========================================================================
 * 四、1.0.6：统一付费卡片布局（取代老皮肤的 float 拼版）
 *
 * 老皮肤的 .bannerL / .bannerMid / .ceoshop-sall 用 float + 百分比宽度拼，
 * 主题字体或图片比例一变，标题就会被标签压住、价格行被撑开、作者卡错位。
 * 这里用一套自包含的 flex 卡片，三种状态（未购买 / 免费待登录 / 已购买）共用。
 * ========================================================================== */

.ceo-card {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
}

/* ---- 左：封面 + 基础信息 ---- */
.ceo-card-left {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 封面 + 基础信息合成一块，左栏不再“上下脱节” */
.ceo-card-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 10px;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    background: #fbfcfd;
    box-sizing: border-box;
}

.ceo-card-cover,
.ceo-card-video {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f5f7;
    line-height: 0;
}

.ceo-card-cover img,
.ceo-card-video img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.ceo-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* 图库盒子（主题输出）嵌进左栏时不要溢出 */
.ceo-card-left .swiper-container,
.ceo-card-left .paid-gallery {
    border-radius: 10px;
    overflow: hidden;
}

.ceo-card-facts {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.ceo-card-fact {
    flex: 1;
    min-width: 0;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 8px 10px;
}

.ceo-fact-label {
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.6;
}

.ceo-fact-value {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ceo-card-report {
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid #ffe0a3;
    border-radius: 8px;
    background: #fffaf0;
    font-size: 12px;
    line-height: 1.7;
    color: #d18b00;
}

.ceo-card-report a {
    color: #d18b00;
}

/* ---- 中：主内容 ---- */
.ceo-card-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

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

.ceo-card-badge {
    flex: 0 0 auto;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 20px;
    border: 1px solid transparent;
}

.ceo-card-badge.is-pay {
    background: #fff0f0;
    border-color: #ffd9d9;
    color: #ef3d3d;
}

.ceo-card-badge.is-free {
    background: #eff6ff;
    border-color: #d8e8ff;
    color: #2f7cf6;
}

.ceo-card-badge.is-vip {
    background: #fff9e8;
    border-color: #ffe9b8;
    color: #b8860b;
}

.ceo-card-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    word-break: break-word;
}

.ceo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: #9aa0a6;
}

.ceo-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.6;
}

.ceo-card-meta a {
    color: #9aa0a6;
}

.ceo-card-promise {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #5a3df2 0%, #7b5cf5 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

.ceo-promise-text b {
    font-weight: 700;
}

.ceo-promise-line {
    opacity: .8;
    margin: 0 2px;
}

.ceo-promise-btn {
    flex: 0 0 auto;
    padding: 2px 12px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 14px;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-decoration: none;
}

.ceo-promise-btn:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.ceo-card-service {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f7f8fa;
    font-size: 12px;
    color: #6b7280;
}

.ceo-service-title {
    color: #4b5563;
    margin-right: 2px;
}

.ceo-card-service .main_info_tb_item {
    display: inline-flex;
    align-items: center;
}

.ceo-paid-box {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #d8f0e0;
    border-radius: 8px;
    background: #f3fbf6;
    font-size: 12px;
    color: #3b7a57;
}

.ceo-paid-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.9;
}

.ceo-paid-line b {
    font-weight: 600;
    color: #2f6b4a;
}

.ceo-card-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #eceef1;
}

.ceo-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.ceo-card-price-hint {
    font-style: normal;
    font-size: 12px;
    color: #f59e0b;
}

.ceo-card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ceo-card-count {
    font-size: 12px;
    color: #9aa0a6;
}

.ceo-card-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ceo-card-btns .but {
    margin: 0;
}

.ceo-card-doc {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
}

.ceo-card-down {
    width: 100%;
}

.ceo-card-down-title {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.ceo-card-gallery {
    width: 100%;
    margin-top: 14px;
}

.ceo-card-gallery-tip {
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 6px;
}

/* ---- 右：作者卡 ---- */
.ceo-card-side {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
}

.ceo-card-side .user-card {
    margin: 0;
    width: 100%;
}

.ceo-card-side .user-cover {
    border-radius: 10px;
    overflow: hidden;
}

/* ---- 移动端：单列 ---- */
@media screen and (max-width: 900px) {
    .ceo-card {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px;
        border-radius: 10px;
    }

    .ceo-card-left {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .ceo-card-left .ceo-card-cover img {
        max-height: 200px;
    }

    .ceo-card-main {
        flex: 1 1 100%;
        width: 100%;
    }

    .ceo-card-side {
        display: none;
    }

    .ceo-card-title {
        font-size: 16px;
    }

    .ceo-card-promise {
        font-size: 12px;
        padding: 8px 10px;
    }

    .ceo-card-btns .but {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* 老皮肤里 .main_info_tb_item 是 50px 高的通栏样式，放进卡片会撑高服务行 */
.ceo-card-service .main_info_tb_item {
    height: auto;
    line-height: 1.6;
    padding: 0;
    white-space: normal;
    overflow: visible;
}

.ceo-card-service .main_info_tb_item .left_title {
    color: #6b7280;
}

.ceo-card-service .main_info_tb_item i {
    color: #ef3d3d !important;
    margin-right: 4px;
}

/* 未登录提示：整条横幅，优先于一切按钮 */
.ceo-card-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #d8e8ff;
    border-radius: 8px;
    background: #f4f9ff;
    font-size: 13px;
    line-height: 1.7;
    color: #2f7cf6;
}

.ceo-card-note i {
    color: #2f7cf6;
}

/* ==========================================================================
 * 1.0.8 修正：封面被主题 .fit-cover（position:absolute;height:100%）压扁，
 * 左栏 media 块 height:100% 导致信息格溢出到边框外。
 * 改为固定比例的封面框 + 自适应高度的媒体块。
 * ========================================================================== */

.ceo-card-media {
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ceo-card-cover,
.ceo-card-video {
    position: relative !important;
    width: 100%;
    height: 0 !important;
    padding-bottom: 68%;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f3f5;
}

.ceo-card-cover img,
.ceo-card-video img {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
    display: block;
}

.ceo-card-facts {
    margin-top: auto;
    flex: 0 0 auto;
}

@media screen and (max-width: 900px) {
    .ceo-card-cover,
    .ceo-card-video {
        padding-bottom: 56%;
    }
}

/* 左栏不跟着卡片高度拉伸，封面+信息格紧贴，不留空白 */
.ceo-card {
    align-items: flex-start;
}

.ceo-card-left {
    align-self: flex-start;
}

/* ==========================================================================
 * 1.1.0：整卡自适应 + 封面跟随列高 + 两个信息格贴底
 *
 * 之前左/右栏写死 240 / 280，容器一变宽就出现大片留白；封面又是固定比例，
 * 卡片被内容撑高后，封面下方空出一块。这里改成：
 *   左栏按容器百分比（clamp 限定范围）、作者卡同理，封面 flex 撑满剩余高度、
 *   信息格永远贴底 —— 三态骨架一致，切状态不跳。
 * ========================================================================== */

.ceo-card {
    align-items: stretch;
    gap: clamp(12px, 1.6vw, 20px);
}

.ceo-card-left {
    flex: 0 0 clamp(170px, 23%, 260px);
    width: auto;
    max-width: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.ceo-card-media {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 封面：不再固定比例，改为吃满左栏剩余高度，图片 object-fit 裁切 */
.ceo-card-cover,
.ceo-card-video {
    position: relative !important;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 140px;
    padding-bottom: 0 !important;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f3f5;
}

.ceo-card-cover img,
.ceo-card-video img {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
    display: block;
}

.ceo-card-facts {
    flex: 0 0 auto;
    margin-top: 0;
}

.ceo-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ceo-card-side {
    flex: 0 0 clamp(210px, 26%, 300px);
    width: auto;
    max-width: none;
    align-self: stretch;
}

/* 中等屏：收窄左右栏，避免中栏过挤 */
@media screen and (max-width: 1100px) {
    .ceo-card-left {
        flex: 0 0 clamp(150px, 21%, 220px);
    }

    .ceo-card-side {
        flex: 0 0 clamp(190px, 24%, 240px);
    }
}

/* 窄屏：单列，封面回到固定比例 */
@media screen and (max-width: 900px) {
    .ceo-card-left {
        flex: 1 1 100%;
        width: 100%;
    }

    .ceo-card-cover,
    .ceo-card-video {
        flex: 0 0 auto;
        height: 0 !important;
        padding-bottom: 56% !important;
        min-height: 0;
    }

    .ceo-card-side {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ==========================================================================
 * 1.1.1：下载区两列网格 + 按钮与提取码紧贴 + 增值服务不再截断
 * 主题的 zibpay_get_post_down_buts() 输出 <div class="flex ac hh"> 里一串
 * .but-download（按钮 + 提取码），横向排会挤成一条；这里改成两列网格。
 * ========================================================================== */

.ceo-card-down .hh,
.ceo-card-down .flex.ac.hh {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    margin-top: 10px;
}

.ceo-card-down .but-download {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}

.ceo-card-down .but-download > a.but:first-child {
    flex: 0 0 auto;
    margin-right: 0 !important;
    padding: 4px 12px;
    line-height: 1.7;
    white-space: nowrap;
}

/* 提取码 / 解压码：紧贴按钮，长文本省略而不撑破格子 */
.ceo-card-down .but-download > a.but:not(:first-child),
.ceo-card-down .but-download > .but:not(:first-child) {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding: 4px 8px;
    border: 1px solid #e9edf2;
    border-radius: 6px;
    background: #f7f8fa;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ceo-card-down .but-download > a.but:not(:first-child):hover {
    background: #eff3f8;
    color: #4b5563;
}

@media screen and (max-width: 780px) {
    .ceo-card-down .hh,
    .ceo-card-down .flex.ac.hh {
        grid-template-columns: 1fr;
    }
}

/* 增值服务：主题 .main_info_tb_items 是 50px 单行截断，改为可换行 */
.ceo-card-service .main_info_tb_items {
    height: auto;
    line-height: 1.6;
    padding: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.ceo-card-service {
    align-items: flex-start;
    line-height: 1.7;
}

/* 未登录：按钮紧贴提示条下方 */
.ceo-card-btns.is-under-note {
    margin-top: 10px;
}

.ceo-card-btns.is-under-note .but {
    padding: .5em 2em;
}

/* 每日下载次数：每个赞助席位一行，名称左、次数右 */
.ceo-down-limit {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f8fa;
    font-size: 13px;
    color: #4b5563;
}

.ceo-down-limit .mb6 {
    margin-bottom: 8px;
    color: #6b7280;
}

.ceo-down-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 2;
}

.ceo-down-limit-row b {
    font-weight: 600;
    color: #333;
}

/* “免费资源，可直接下载”放在“资源下载”标题下方 */
.ceo-card-hint {
    margin: 4px 0 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #f59e0b;
}

/* 作者卡底部两个按钮等宽等高 */
.ceo-card-side .user-btns {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ceo-card-side .user-btns > a.but {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    padding: 0 10px !important;
    height: 34px;
    line-height: 32px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ceo-card-side .user-btns > a.but i {
    margin-right: 0;
}

/* ==========================================================================
 * 1.2.0：夜间模式（子比主题 .dark-theme）
 *
 * 卡片里所有写死的浅色底/深色字，在夜间模式下都会变成“深底 + 深字”，
 * 这里统一改用主题的 CSS 变量，保持与站点其余部分同一套配色。
 * ========================================================================== */

body.dark-theme .ceo-card {
    background: var(--main-bg-color, #323335);
    color: var(--main-color, #e5eef7);
}

body.dark-theme .ceo-card-media {
    background: var(--muted-bg-color, #2d2e31);
    border-color: var(--main-border-color, rgba(114, 114, 114, .2));
}

body.dark-theme .ceo-card-cover,
body.dark-theme .ceo-card-video {
    background: var(--muted-bg-2-color, #37383a);
}

body.dark-theme .ceo-card-fact {
    background: var(--muted-bg-2-color, #37383a);
}

body.dark-theme .ceo-fact-label {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-fact-value {
    color: var(--main-color, #e5eef7);
}

body.dark-theme .ceo-card-report {
    background: rgba(240, 160, 20, .12);
    border-color: rgba(240, 160, 20, .28);
    color: #f0b95b;
}

body.dark-theme .ceo-card-report a {
    color: #f0b95b;
}

body.dark-theme .ceo-card-badge.is-free {
    background: rgba(47, 124, 246, .16);
    border-color: rgba(47, 124, 246, .3);
    color: #7cb0ff;
}

body.dark-theme .ceo-card-badge.is-pay {
    background: rgba(239, 61, 61, .16);
    border-color: rgba(239, 61, 61, .3);
    color: #ff8b84;
}

body.dark-theme .ceo-card-badge.is-vip {
    background: rgba(212, 168, 55, .16);
    border-color: rgba(212, 168, 55, .3);
    color: #e8c877;
}

body.dark-theme .ceo-card-title {
    color: var(--key-color, #f8fafc);
}

body.dark-theme .ceo-card-meta,
body.dark-theme .ceo-card-meta a {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-card-service {
    background: var(--muted-bg-color, #2d2e31);
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-card-service .main_info_tb_item .left_title {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-card-note {
    background: rgba(47, 124, 246, .12);
    border-color: rgba(47, 124, 246, .25);
    color: #7cb0ff;
}

body.dark-theme .ceo-card-note i {
    color: #7cb0ff;
}

body.dark-theme .ceo-paid-box {
    background: rgba(59, 150, 105, .14);
    border-color: rgba(59, 150, 105, .28);
    color: #8fd0ac;
}

body.dark-theme .ceo-paid-line b {
    color: #a8e0c0;
}

body.dark-theme .ceo-card-price-row {
    border-top-color: var(--main-border-color, rgba(114, 114, 114, .2));
}

body.dark-theme .ceo-card-count {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-card-doc,
body.dark-theme .ceo-card-down-title {
    color: var(--muted-color, #b4b6bb);
}

body.dark-theme .ceo-card-hint {
    color: #f0b95b;
}

body.dark-theme .ceo-down-limit {
    background: var(--muted-bg-color, #2d2e31);
    color: var(--main-color, #e5eef7);
}

body.dark-theme .ceo-down-limit .mb6,
body.dark-theme .ceo-down-limit .t {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-down-limit-row b {
    color: var(--key-color, #f8fafc);
}

body.dark-theme .ceo-card-down .but-download {
    background: var(--muted-bg-color, #2d2e31);
    border-color: var(--main-border-color, rgba(114, 114, 114, .2));
}

body.dark-theme .ceo-card-down .but-download > a.but:not(:first-child),
body.dark-theme .ceo-card-down .but-download > .but:not(:first-child),
body.dark-theme .ceo-card-down .code {
    background: var(--muted-bg-2-color, #37383a);
    border-color: var(--main-border-color, rgba(114, 114, 114, .2));
    color: var(--muted-color, #b4b6bb);
}

body.dark-theme .ceo-card-down .but-download > a.but:not(:first-child):hover {
    background: #3f4043;
    color: var(--main-color, #e5eef7);
}

body.dark-theme .ceo-card-side .user-card {
    background: var(--main-bg-color, #323335);
}

/* 夜间模式下主题自带的红色/绿色标签文字保持可读 */
body.dark-theme .ceo-card .badg.c-red {
    background: rgba(224, 83, 61, .16);
    color: #ff8b77;
}

body.dark-theme .ceo-service-title,
body.dark-theme .ceo-card-gallery-tip,
body.dark-theme .ceo-card-cat {
    color: var(--muted-2-color, #9aa0a6);
}

body.dark-theme .ceo-card-price-hint {
    color: #f0b95b;
}
