/* ===== 弹窗遮罩 ===== */
.fs-cl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483646; /* 比内容加密插件低1 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 弹窗主体 ===== */
.fs-cl-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,.25);
    animation: fs-cl-modal-in .25s ease;
    resize: none;
    /* 移动端高分屏防模糊：强制独立合成层全分辨率光栅化，避免亚像素/低分辨率纹理采样导致文字与边框发虚 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}
/* 小屏幕下确保不滚动 */
@media (max-width: 480px) {
    .fs-cl-modal-box {
        max-height: 95vh;
    }
}
@keyframes fs-cl-modal-in {
    from { opacity: 0; transform: translateZ(0) scale(.96); }
    to   { opacity: 1; transform: translateZ(0) scale(1); }
}

/* ===== 弹窗头部 ===== */
.fs-cl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 12px 12px 0 0;
}
.fs-cl-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.fs-cl-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.fs-cl-modal-close:hover {
    color: #333;
}

/* ===== 弹窗表单 ===== */
.fs-cl-modal-body {
    padding: 14px 20px 16px;
}
.fs-cl-form-group {
    margin-bottom: 8px;
}
.fs-cl-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}
.fs-cl-required {
    color: #f5222d;
}
.fs-cl-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fs-cl-input:focus {
    outline: none;
    border-color: #4f8df7;
    box-shadow: 0 0 0 2px rgba(79,141,247,.15);
}
.fs-cl-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-family: inherit;
}
.fs-cl-textarea:focus {
    outline: none;
    border-color: #4f8df7;
    box-shadow: 0 0 0 2px rgba(79,141,247,.15);
}
.fs-cl-input-row {
    display: flex;
    gap: 8px;
}
.fs-cl-input-row .fs-cl-input {
    flex: 1;
}
.fs-cl-btn-fetch {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid #4f8df7;
    background: #fff;
    color: #4f8df7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}
.fs-cl-btn-fetch:hover {
    background: #4f8df7;
    color: #fff;
}
.fs-cl-btn-fetch:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ===== 续费状态提示 ===== */
.fs-cl-renewal-info {
    margin-top: 8px;
    padding: 0;
}
.fs-cl-renewal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #096dd9;
}
.fs-cl-renewal-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}
.fs-cl-renewal-detail {
    font-size: 12px;
    opacity: .85;
}
.fs-cl-renewal-tip {
    margin: 6px 0 0;
    font-size: 12px;
    color: #52c41a;
    padding-left: 4px;
}
.io-black-mode .fs-cl-renewal-badge,
.dark .fs-cl-renewal-badge {
    background: rgba(24,144,255,.12);
    border-color: rgba(24,144,255,.35);
    color: #69c0ff;
}
.io-black-mode .fs-cl-renewal-tip,
.dark .fs-cl-renewal-tip {
    color: #52c41a;
}

/* ===== 月数选项 ===== */
.fs-cl-months-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.fs-cl-month-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    position: relative;
}
.fs-cl-month-option:hover {
    border-color: #4f8df7;
}
.fs-cl-month-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.fs-cl-month-option input[type="radio"]:checked + .fs-cl-month-label {
    color: #4f8df7;
}
.fs-cl-month-option:has(input:checked) {
    border-color: #4f8df7;
    background: #f0f6ff;
}
.fs-cl-month-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1px;
    padding: 0 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fs-cl-month-price {
    font-size: 15px;
    font-weight: 700;
    color: #f5222d;
}
.fs-cl-month-save {
    font-size: 11px;
    color: #52c41a;
}
/* ===== 活动价元素（横幅/倒计时/角标/划线原价） ===== */
.fs-cl-activity-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 16px 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 77, 79, .08), rgba(255, 122, 69, .13));
    border: 1px solid rgba(255, 77, 79, .22);
    color: #d4380d;
    font-size: 12px;
    overflow: hidden;
}
.fs-cl-activity-banner-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}
.fs-cl-activity-banner-label {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    padding: 4px 8px;
    border-radius: 10px;
}
.fs-cl-activity-banner-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 数字块卡片倒计时 */
.fs-cl-countdown-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.fs-cl-cd-tip {
    font-size: 11px;
    color: #cf1322;
    margin-right: 2px;
}
.fs-cl-cd-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: Consolas, Monaco, monospace;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(255,77,79,.3);
    line-height: 1;
}
.fs-cl-cd-unit,
.fs-cl-cd-colon {
    font-size: 11px;
    font-weight: 700;
    color: #cf1322;
    margin: 0 1px;
}
.fs-cl-activity-badge {
    position: absolute;
    bottom: -6px;
    left: -4px;
    z-index: 2;
    font-size: 10px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    padding: 2px 6px;
    border-radius: 8px 2px 8px 8px;
    box-shadow: 0 2px 4px rgba(255,77,79,.35);
    white-space: nowrap;
    pointer-events: none;
}
.fs-cl-month-original {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}
.io-black-mode .fs-cl-activity-banner,
.dark .fs-cl-activity-banner {
    background: linear-gradient(135deg, rgba(255, 77, 79, .12), rgba(255, 122, 69, .16));
    border-color: rgba(255, 77, 79, .3);
    color: #ff7875;
}
.io-black-mode .fs-cl-cd-tip,
.dark .fs-cl-cd-tip,
.io-black-mode .fs-cl-cd-unit,
.dark .fs-cl-cd-unit,
.io-black-mode .fs-cl-cd-colon,
.dark .fs-cl-cd-colon {
    color: #ff7875;
}
.io-black-mode .fs-cl-cd-block,
.dark .fs-cl-cd-block {
    background: #ff4d4f;
    color: #fff;
}
.io-black-mode .fs-cl-month-original,
.dark .fs-cl-month-original,
.io-black-mode .fs-cl-price-original,
.dark .fs-cl-price-original {
    color: #777;
}

/* ===== 支付方式选项 ===== */
.fs-cl-pay-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.fs-cl-pay-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
}
.fs-cl-pay-option:hover {
    border-color: #4f8df7;
}
.fs-cl-pay-option input[type="radio"] {
    margin-right: 6px;
}
.fs-cl-pay-option:has(input:checked) {
    border-color: #4f8df7;
    background: #f0f6ff;
}
.fs-cl-no-payment {
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* ===== 合计行（支付方式正下方，横排展示） ===== */
.fs-cl-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    background: #fafafa;
    border-radius: 8px;
}
.fs-cl-price-label {
    font-size: 13px;
    color: #666;
}
.fs-cl-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #f5222d;
}
.fs-cl-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.fs-cl-price-save {
    font-size: 12px;
    color: #52c41a;
    font-weight: 600;
}

/* ===== 提交按钮 ===== */
.fs-cl-btn-submit {
    width: 100%;
    padding: 10px 16px;
    margin-top: 6px;
    background: #4f8df7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.fs-cl-btn-submit:hover:not(:disabled) {
    background: #3a7be0;
}
.fs-cl-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== 支付结果区域 ===== */
.fs-cl-modal-payment {
    padding: 30px 22px;
    text-align: center;
}
.fs-cl-payment-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fs-cl-payment-amount {
    font-size: 28px;
    font-weight: 700;
    color: #f5222d;
}
.fs-cl-payment-order {
    font-size: 13px;
    color: #999;
}
.fs-cl-payment-qrcode {
    margin: 16px 0;
}
.fs-cl-payment-qrcode img {
    width: 200px;
    height: 200px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
.fs-cl-payment-qrcode p {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}
.fs-cl-btn-pay {
    display: inline-block;
    padding: 12px 36px;
    background: #4f8df7;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background .2s;
}
.fs-cl-btn-pay:hover {
    background: #3a7be0;
}
.fs-cl-payment-status {
    margin-top: 12px;
    font-size: 14px;
    color: #999;
}
.fs-cl-payment-status.fs-cl-payment-success {
    color: #52c41a;
    font-weight: 600;
}
.fs-cl-payment-status.fs-cl-payment-error {
    color: #f5222d;
    font-weight: 600;
}

/* ===== 二维码独立支付弹窗 ===== */
.fs-cl-qrcode-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    animation: fs-cl-qrcode-fadein .2s ease;
}
@keyframes fs-cl-qrcode-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fs-cl-qrcode-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px 20px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.3);
    animation: fs-cl-qrcode-pop .25s ease;
}
@keyframes fs-cl-qrcode-pop {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.fs-cl-qrcode-modal-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.fs-cl-qrcode-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 22px;
    color: #999;
    line-height: 1;
    transition: color .2s;
}
.fs-cl-qrcode-modal-close:hover {
    color: #666;
}
.fs-cl-qrcode-amount {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}
.fs-cl-qrcode-amount em {
    font-style: normal;
    font-size: 24px;
    font-weight: 700;
    color: #f5222d;
    margin-left: 4px;
}
.fs-cl-qrcode-img {
    padding: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}
.fs-cl-qrcode-img img {
    width: 200px;
    height: 200px;
    display: block;
}
.fs-cl-qrcode-extra {
    margin-bottom: 10px;
}
.fs-cl-qrcode-order {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 8px;
}
.fs-cl-qrcode-status {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}
.fs-cl-qrcode-status.fs-cl-qrcode-success {
    color: #52c41a;
    font-weight: 600;
}
.fs-cl-qrcode-tip {
    font-size: 12px;
    color: #ccc;
}

/* ===== 浮动入口按钮 ===== */
.fs-cl-float-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #4f8df7;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79,141,247,.4);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
    font-size: 14px;
    font-weight: 600;
}
.fs-cl-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,141,247,.5);
}
.fs-cl-float-icon {
    font-size: 20px;
    line-height: 1;
}

/* ===== Toast 提示 ===== */
.fs-cl-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 28px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 2147483647;
    transition: transform .3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    pointer-events: none;
}
.fs-cl-toast-show {
    transform: translateX(-50%) translateY(0);
}
.fs-cl-toast-success { background: #52c41a; }
.fs-cl-toast-error   { background: #f5222d; }
.fs-cl-toast-info    { background: #1890ff; }

/* ===== 暗黑模式 ===== */
.io-black-mode .fs-cl-modal-box,
.dark .fs-cl-modal-box {
    background: #2a2a2a;
    color: #e0e0e0;
}
.io-black-mode .fs-cl-modal-header,
.dark .fs-cl-modal-header {
    background: #2a2a2a;
    border-bottom-color: #3a3a3a;
}
.io-black-mode .fs-cl-modal-close,
.dark .fs-cl-modal-close {
    color: #888;
}
.io-black-mode .fs-cl-modal-close:hover,
.dark .fs-cl-modal-close:hover {
    color: #fff;
}
.io-black-mode .fs-cl-label,
.dark .fs-cl-label {
    color: #ccc;
}
.io-black-mode .fs-cl-input,
.dark .fs-cl-input,
.io-black-mode .fs-cl-textarea,
.dark .fs-cl-textarea {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}
.io-black-mode .fs-cl-input:focus,
.dark .fs-cl-input:focus,
.io-black-mode .fs-cl-textarea:focus,
.dark .fs-cl-textarea:focus {
    border-color: #4f8df7;
}
.io-black-mode .fs-cl-btn-fetch,
.dark .fs-cl-btn-fetch {
    background: #2a2a2a;
    color: #4f8df7;
    border-color: #4f8df7;
}
.io-black-mode .fs-cl-month-option,
.dark .fs-cl-month-option {
    border-color: #444;
}
.io-black-mode .fs-cl-month-option:has(input:checked),
.dark .fs-cl-month-option:has(input:checked) {
    background: #1a2333;
}
.io-black-mode .fs-cl-pay-option,
.dark .fs-cl-pay-option {
    border-color: #444;
}
.io-black-mode .fs-cl-pay-option:has(input:checked),
.dark .fs-cl-pay-option:has(input:checked) {
    background: #1a2333;
}
.io-black-mode .fs-cl-price-label,
.dark .fs-cl-price-label {
    color: #999;
}
.io-black-mode .fs-cl-price-row,
.dark .fs-cl-price-row {
    background: rgba(255,255,255,.04);
}
.io-black-mode .fs-cl-payment-qrcode img,
.dark .fs-cl-payment-qrcode img {
    border-color: #3a3a3a;
}
.io-black-mode .fs-cl-payment-order,
.dark .fs-cl-payment-order {
    color: #666;
}
.io-black-mode .fs-cl-payment-status,
.dark .fs-cl-payment-status {
    color: #666;
}
/* 二维码独立弹窗深色模式 */
.io-black-mode .fs-cl-qrcode-modal-box,
.dark .fs-cl-qrcode-modal-box {
    background: #2a2a2a;
}
.io-black-mode .fs-cl-qrcode-modal-box h3,
.dark .fs-cl-qrcode-modal-box h3 {
    color: #e0e0e0;
}
.io-black-mode .fs-cl-qrcode-amount,
.dark .fs-cl-qrcode-amount {
    color: #999;
}
.io-black-mode .fs-cl-qrcode-img,
.dark .fs-cl-qrcode-img {
    background: #fff;
    border-color: #444;
}
.io-black-mode .fs-cl-qrcode-order,
.dark .fs-cl-qrcode-order {
    color: #555;
}
.io-black-mode .fs-cl-qrcode-status,
.dark .fs-cl-qrcode-status {
    color: #666;
}
.io-black-mode .fs-cl-qrcode-tip,
.dark .fs-cl-qrcode-tip {
    color: #555;
}
.io-black-mode .fs-cl-qrcode-modal-close,
.dark .fs-cl-qrcode-modal-close {
    color: #666;
}
.io-black-mode .fs-cl-qrcode-modal-close:hover,
.dark .fs-cl-qrcode-modal-close:hover {
    color: #999;
}

/* ===== 弹窗响应式 ===== */
@media (max-width: 480px) {
    .fs-cl-modal-box {
        width: 95%;
        max-width: none;
        max-height: 92vh;
    }
    .fs-cl-months-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .fs-cl-float-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    /* 窄屏下倒计时换行到活动语下方，避免被挤出可视区域 */
    .fs-cl-countdown-wrap {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    /* ===== 手机端紧凑化：压缩各间距、卡片高度、横幅、输入框，避免撑爆视口 ===== */
    .fs-cl-modal-header {
        padding: 8px 12px;
    }
    .fs-cl-modal-title {
        font-size: 15px;
    }
    .fs-cl-modal-body {
        padding: 10px 14px 14px;
    }
    .fs-cl-form-group {
        margin-bottom: 7px;
    }
    .fs-cl-label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .fs-cl-input {
        padding: 6px 9px;
        font-size: 13px;
    }
    .fs-cl-btn-fetch {
        padding: 6px 10px;
        font-size: 12px;
    }
    /* 活动横幅紧凑化 */
    .fs-cl-activity-banner {
        margin: 6px 12px 0;
        padding: 6px 10px;
        gap: 4px;
        font-size: 12px;
    }
    .fs-cl-activity-banner-label {
        font-size: 10px;
        padding: 3px 7px;
    }
    .fs-cl-countdown-wrap {
        gap: 2px;
        font-size: 10px;
    }
    .fs-cl-cd-tip {
        font-size: 10px;
    }
    .fs-cl-cd-block {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        padding: 0 2px;
    }
    .fs-cl-cd-unit,
    .fs-cl-cd-colon {
        font-size: 10px;
    }
    /* 购买时长卡片紧凑化 */
    .fs-cl-month-option {
        padding: 5px 4px;
    }
    .fs-cl-month-label {
        font-size: 12px;
    }
    .fs-cl-month-price {
        font-size: 14px;
    }
    .fs-cl-month-save {
        font-size: 10px;
    }
    .fs-cl-activity-badge {
        font-size: 9px;
        padding: 2px 5px;
        bottom: -5px;
        left: -3px;
    }
    /* 支付方式与合计行紧凑化 */
    .fs-cl-pay-option {
        padding: 5px 10px;
        font-size: 12px;
    }
    .fs-cl-price-row {
        padding: 6px 10px;
        margin-top: 2px;
    }
    .fs-cl-price-amount {
        font-size: 18px;
    }
    /* 提交按钮紧凑化 */
    .fs-cl-btn-submit {
        padding: 9px;
        font-size: 14px;
    }
}

/* ===== 子页面推荐位（B模式）：弹窗位置徽标与切换提示条 ===== */
.fs-cl-modal-location {
    display: none !important;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
    background: #e8f0fe;
    color: #1a56b0;
}
.fs-cl-modal-location[data-loc="home"] {
    background: #e6f4ea;
    color: #1e7e34;
}
.fs-cl-modal-location[data-loc="sub"] {
    background: #f3e8ff;
    color: #7c3aed;
}
.fs-cl-location-tip {
    margin: 10px 16px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    background: #fff8e1;
    color: #b26a00;
    border: 1px solid #ffe08a;
}

/* ===== 推荐位区域容器 ===== */
.fs-cl-featured-wrapper {
    margin-top: 4px;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 0;
    background: rgba(130,130,130,.15);
    border-radius: 12px;
    overflow: hidden;
}
.io-black-mode .fs-cl-featured-wrapper {
    background: rgba(80,80,80,.35);
}
.io-black-mode .fs-cl-card-name,
.io-black-mode .fs-cl-apply-text {
    color: #f3f4f6;
}
.fs-cl-featured-section {
    max-width: 100%;
    box-sizing: border-box;
}
.fs-cl-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 4px;
}
.fs-cl-section-title {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    color: var(--main-color);
    line-height: 1.3;
}
.fs-cl-section-desc {
    font-size: 12px;
    color: var(--muted-color);
    margin: 0;
}

/* ===== 网格布局（使用后台设置的列数） ===== */
.fs-cl-modal-location {
    display: none !important;
}
.fs-cl-featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--fs-cl-cols, 10), 1fr);
    gap: 8px;
    margin: 0;
}

/* ===== 推荐位卡片 ===== */
.fs-cl-card {
    position: relative;
    background-color: var(--main-bg-color);
    border-radius: 10px;
    margin: 0;
    padding: 0;
    border: 1px solid #f9c74f;
    transition: all .2s ease;
    overflow: hidden;
    box-sizing: border-box;
}
.fs-cl-card:hover {
    background: rgba(99,102,241,.06);
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
/* 每张卡片不同的边框颜色（10色循环） */
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+1) { border-color: #f9c74f; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+2) { border-color: #38c172; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+3) { border-color: #ef4444; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+4) { border-color: #3b82f6; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+5) { border-color: #fb923c; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+6) { border-color: #9333ea; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+7) { border-color: #14b8a6; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+8) { border-color: #f97316; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+9) { border-color: #eab308; }
.fs-cl-featured-grid .fs-cl-card:nth-child(10n+10) { border-color: #22c55e; }
.fs-cl-card-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 34px;
    box-sizing: border-box;
}

/* ===== 卡片图标 ===== */
.fs-cl-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fs-cl-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.fs-cl-card-icon-fallback {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-color);
    line-height: 1;
    text-transform: uppercase;
    z-index: 1;
}

/* ===== 卡片信息 ===== */
.fs-cl-card-info {
    min-width: 0;
    overflow: hidden;
}
.fs-cl-card-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #1f2937;
    line-height: 1.1rem;
    text-align: left;
    transition: color .2s ease;
    min-width: 0;
}
.fs-cl-card:hover .fs-cl-card-name {
    color: var(--theme-color);
}

/* ===== 申请入口卡片 ===== */
.fs-cl-card.fs-cl-card-apply {
    border: 1px dashed #9333ea;
    border-radius: 10px;
    background: var(--main-bg-color);
    margin: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    overflow: hidden;
    box-sizing: border-box;
}
.fs-cl-card-apply:hover {
    background: rgba(99,102,241,.06);
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.fs-cl-apply-inner {
    text-align: center;
    padding: 0 6px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
}
.fs-cl-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    border-radius: 22px;
    background: var(--theme-color);
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}
.fs-cl-apply-text {
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
    line-height: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 响应式适配 ===== */
@media (max-width: 992px) {
    .fs-cl-featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
@media (max-width: 768px) {
    .fs-cl-featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .fs-cl-section-title {
        font-size: 1rem;
    }
    .fs-cl-card-link {
        padding: 0 1px;
    }
    .fs-cl-card-icon {
        width: 20px;
        height: 20px;
    }
    .fs-cl-card-icon img {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 480px) {
    .fs-cl-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fs-cl-section-title {
        font-size: 1rem;
    }
    .fs-cl-section-desc {
        font-size: 11px;
    }
    .fs-cl-card-link {
        padding: 0 6px;
    }
    .fs-cl-card-icon {
        width: 22px;
        height: 22px;
        border-radius: 22px;
    }
    .fs-cl-plus {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* ===== 详情页推荐位：复用首页 fs-cl-* 样式，容器直接可见 ===== */
.fs-cl-detail-featured-wrapper {
    display: block;
    margin-bottom: 4px;
}
