/* =============================================================
 * Widget 3：用户评价 zibapi-reviews
 * ============================================================= */
.zibapi-pay-main .fluid-widget-wrap .zib-widget{
    border-radius: var(--a-card-radius);
}

.zibapi-reviews .review-card {
    position: relative;
    padding: 24px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: var(--a-card-radius);
    background: var(--main-bg-color);
}

.zibapi-reviews .review-head {
    margin-bottom: 12px;
}

.zibapi-reviews .review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.zibapi-reviews .review-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 108, 255, 0.1);
    color: var(--focus-color, #5b6cff);
    font-size: 22px;
}

.zibapi-reviews .review-meta {
    min-width: 0;
}

.zibapi-reviews .review-name {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.zibapi-reviews .review-role {
    font-size: 12px;
    line-height: 1.4;
}

.zibapi-reviews .review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
    color: #ffb521;
    font-size: 18px;
}

.zibapi-reviews .review-stars .is-off {
    color: rgba(0, 0, 0, 0.1);
}

.zibapi-reviews .review-content {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    color: var(--muted-color, #7a8294);
}

.zibapi-reviews .review-quote {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 22px;
    color: rgb(253, 110, 150);
}

.zibapi-reviews .swiper-scroll .swiper-button-next,
.zibapi-reviews .swiper-scroll .swiper-button-prev {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* swiper 每屏卡片数：通过 CSS 变量 --per-pc / --per-m 控制
   gap 默认 16px，按 (per - 1) 个间隙扣除 */
.zibapi-reviews {
    --slide-gap: 15px;
}

.zibapi-reviews .swiper-slide {
    width: 280px;
    height: auto;
    margin-right: var(--slide-gap);
}

@media (min-width: 1200px) {
    .zibapi-reviews .swiper-slide {
        width: calc(25% - var(--slide-gap));
    }
}

@media (max-width: 768px) {
    .zibapi-reviews .review-card {
        padding: 15px;
    }
}

/* =============================================================
 * Widget 4：常见问题 FAQ（新版）
 * ============================================================= */
.zibapi-faq-block {
    position: relative;
}

.zibfaq-head {
    text-align: center;
    max-width: 720px;
    margin: auto;
    margin-bottom: 40px;
}

.zibfaq-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 6px 6px 6px 14px;
    background: var(--main-bg-color, #fff);
    border-radius: 999px;
    box-shadow: 0px 1px 10px 0px rgba(72, 80, 140, 0.1);
    gap: 8px;
}

.dark-theme .zibfaq-search {
    border-color: var(--main-border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.4);
}

.zibfaq-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e54e9;
    font-size: 18px;
    flex-shrink: 0;
    padding-left: 4px;
    opacity: 0.85;
}

.zibfaq-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--main-color);
    outline: none;
    padding: 10px 8px;
}

.zibfaq-search-input::placeholder {
    color: var(--muted-3-color, #999);
}

.zibfaq-search-btn {
    flex-shrink: 0;
    padding: 0 22px;
    min-height: 40px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #8e54e9 0%, #4776e6 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zibfaq-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(71, 118, 230, 0.65);
}

.zibfaq-main {
    display: flex;
    gap: 24px;
}

.zibfaq-main--full {
    grid-template-columns: 1fr;
}

.zibfaq-list-col {
    gap: 10px;
}

.zibfaq-summary {
    flex: 1 1 calc(50% - 5px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--main-bg-color);
    border-radius: var(--a-card-radius);
    box-shadow: 0 4px 12px -6px var(--main-shadow);
}

.zibfaq-summary .zibfaq-chevron {
    display: none;
}

.zibfaq-badge {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
}

.zibfaq-badge--purple {
    background: linear-gradient(135deg, #8e54e9, #a776f0);
}
.zibfaq-badge--pink {
    background: linear-gradient(135deg, #f857a6, #ff7eb3);
}
.zibfaq-badge--green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}
.zibfaq-badge--orange {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}
.zibfaq-badge--blue {
    background: linear-gradient(135deg, #4776e6, #5d9bff);
}

.zibfaq-qblock {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zibfaq-q {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--main-color);
}

.zibfaq-preview {
    font-size: 12.5px;
    line-height: 1.55;
}

.zibfaq-answer {
    padding: 0 18px 18px 68px;
    font-size: 13.5px;
    line-height: 1.85;
    display: none;
    flex: 2 0 calc(70% - 5px);
}

.zibfaq-aside {
    display: flex;
    flex-direction: column;
    flex: 1 0 calc(30% - 5px);
}

.zibfaq-doc-card {
    border-radius: var(--a-card-radius);
}

.zibfaq-doc-head {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.zibfaq-doc-head-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #6e49dd, #5a8cf8);
    color: #fff;
    flex-shrink: 0;
}

.zibfaq-doc-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.zibfaq-doc-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
}

.zibfaq-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: -10px;
}

.zibfaq-doc-a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--main-border-color);
}

.zibfaq-doc-a:hover .zibfaq-doc-go {
    transform: translateX(6px);
}

.zibfaq-doc-li-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: rgba(248, 87, 165, 0.1);
    color: #f857a6;
}

.zibfaq-doc-li-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zibfaq-doc-li-title {
    font-size: 14px;
    font-weight: 600;
}

.zibfaq-doc-li-desc {
    font-size: 12px;
}

.zibfaq-doc-go {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--focus-color);
    white-space: nowrap;
    gap: 6px;
    transition: 0.2s ease;
}

.zibfaq-help-card {
    border-radius: var(--a-card-radius);
    padding: 20px;
    background: linear-gradient(135deg, #8e54e9 0%, #4776e6 100%);
    box-shadow: 0 14px 36px -18px rgba(71, 118, 230, 0.55);
    color: #fff;
}

.zibfaq-help-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.zibfaq-help-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.zibfaq-help-text {
    flex: 1;
    min-width: 160px;
}

.zibfaq-help-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.zibfaq-help-sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.92;
}

.zibfaq-help-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    color: #6d4ddf;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, color 0.2s ease;
}

.zibfaq-help-btn:hover {
    transform: translateY(-1px);
    color: #5a3fd4;
}

.zibfaq-help-btn .fa {
    font-size: 11px;
}

@media (max-width: 1024px) {
    .zibfaq-summary {
        flex: 1 0 100%;
    }

    .zibfaq-aside {
        flex: 1 0 50%;
    }
}

@media (max-width: 768px) {
    .zibfaq-search {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    .zibfaq-search-icon {
        order: 0;
    }
    .zibfaq-search-input {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 6px 6px;
    }
    .zibfaq-head {
        margin-bottom: 20px;
    }
    .zibfaq-main {
        gap: 20px;
        flex-direction: column;
    }
    .zibfaq-search-btn {
        flex: 1;
        min-width: 80px;
        padding: 0px;
        min-height: 35px;
    }
    .zibfaq-summary {
        padding: 15px;
    }
    .zibfaq-answer {
        padding: 0 14px 14px 56px;
        font-size: 13px;
    }
    .zibfaq-help-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .zibfaq-help-btn {
        justify-content: center;
        width: 100%;
    }
    .zibfaq-help-card {
        padding: 15px;
    }
}

/* =============================================================
 * Widget 5：数据统计 zibapi-stats
 * ============================================================= */

/* ---------- 5.A 极简网格布局 layout-grid ---------- */
.zibapi-stats.layout-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 28px 24px;
}

.zibapi-stats.layout-grid.cols-1 {
    grid-template-columns: 1fr;
}
.zibapi-stats.layout-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.zibapi-stats.layout-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.zibapi-stats.layout-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.zibapi-stats.layout-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}
.zibapi-stats.layout-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.zibapi-stats.layout-grid.card-plain {
    background: transparent;
    padding: 20px 0;
}
.zibapi-stats.layout-grid.card-box {
    background: var(--main-bg-color, #fff);
    border-radius: 16px;
    box-shadow: 0 8px 24px -12px rgba(94, 104, 154, 0.18);
}
.zibapi-stats.layout-grid.card-gradient {
    background: linear-gradient(135deg, #f5f3ff 0%, #fff3f6 100%);
    border-radius: 16px;
}

.zibapi-stats.layout-grid .stat-item {
    position: relative;
    padding: 0 12px;
}

.zibapi-stats.layout-grid:not(.card-plain) .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--main-border-color, rgba(31, 36, 51, 0.08));
}

.zibapi-stats.layout-grid .stat-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--focus-color, #5b6cff);
}

.zibapi-stats.layout-grid .stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}

.zibapi-stats.layout-grid .stat-prefix,
.zibapi-stats.layout-grid .stat-unit {
    font-size: 0.5em;
    font-weight: 700;
    margin: 0 2px;
    opacity: 0.8;
}

.zibapi-stats.layout-grid .stat-number {
    font-size: 44px;
    letter-spacing: -0.02em;
}

.zibapi-stats.layout-grid.num-pink .stat-value {
    background: linear-gradient(135deg, #ff5e8a 0%, #ff3d6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.zibapi-stats.layout-grid.num-blue .stat-value {
    background: linear-gradient(135deg, #5b6cff 0%, #2bbcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.zibapi-stats.layout-grid.num-theme .stat-value {
    color: var(--focus-color, #5b6cff);
}

.zibapi-stats.layout-grid .stat-label {
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- 5.B 左右分栏布局 layout-split ---------- */
.zibapi-stats.layout-split {
    --intro-w: minmax(0, 1fr);
    --cards-w: minmax(0, 1.5fr);

    position: relative;
    display: grid;
    grid-template-columns: var(--intro-w) var(--cards-w);
    gap: 36px;
    align-items: center;
    padding: 36px;
    background: radial-gradient(60% 80% at 0% 0%, rgba(255, 134, 178, 0.15) 0%, transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(112, 255, 231, 0.12) 0%, transparent 60%), var(--main-bg-color, #fff);
    border-radius: var(--a-card-radius);
    box-shadow: 0px 5px 20px 0 var(--main-shadow, rgba(94, 104, 154, 0.12));
    overflow: hidden;
}

/* 夜间模式下 Trust 徽章 / Badge 的浅色硬编码会发亮，加点透明度处理 */

.zibapi-stats.layout-split.no-intro {
    grid-template-columns: 1fr;
}

/* 左侧文案 */
.zibapi-stats.layout-split .stats-intro {
    padding: 8px;
}

.zibapi-stats.layout-split .intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 999px;
    background: linear-gradient(178deg, #ff78aa00, #ff599a3d);
    color: #ff4d80;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0px 3px 5px 0px rgba(255, 90, 130, 0.2);
    border: 1px solid #ff649054;
}
.zibapi-stats.layout-split .intro-badge i,
.zibapi-stats.layout-split .intro-badge .icon {
    font-size: 12px;
}

.zibapi-stats.layout-split .intro-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin: 16px 0 14px;
    color: var(--key-color, #1f2433);
}
.zibapi-stats.layout-split .intro-title em {
    font-style: normal;
    background: linear-gradient(135deg, #ff1430 0%, #ff8aab 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    padding: 0 2px;
    font-size: 1.1em;
    letter-spacing: -0.02em;
}

.zibapi-stats.layout-split .intro-subtitle {
    font-size: 13px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.zibapi-stats.layout-split .intro-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.zibapi-stats.layout-split .trust-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.zibapi-stats.layout-split .trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(255, 63, 63, 0.01), rgba(255, 0, 85, 0.155));
    color: #ff4d80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: -1px 5px 14px -8px rgba(255, 90, 130, 0.4);
    border: 1px solid rgba(255, 143, 205, 0.15);
}
.zibapi-stats.layout-split .trust-text h6 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color, #1f2433);
}
.zibapi-stats.layout-split .trust-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

/* 右侧卡片网格 */
.zibapi-stats.layout-split .stats-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.zibapi-stats.layout-split .stats-cards.pc-cols-1 {
    grid-template-columns: 1fr;
}
.zibapi-stats.layout-split .stats-cards.pc-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.zibapi-stats.layout-split .stats-cards.pc-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.zibapi-stats.layout-split .stats-cards.pc-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 卡片本体（夜间模式自动跟随 --main-bg-color） */
.zibapi-stats.layout-split .stat-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 5px 50px 5px;
    text-align: center;
    background: var(--main-bg-color, #fff);
    border-radius: 22px;
    box-shadow: 5px 6px 18px 0px var(--main-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}
.zibapi-stats.layout-split .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 56px -24px var(--c-shadow, rgba(216, 48, 103, 0.3));
}

/* 顶部柔和渐变背景（贴顶部 1/2，作底铺） */
.zibapi-stats.layout-split .stat-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 55%;
    background: var(--c-bg, linear-gradient(180deg, #fce4ec 0%, rgba(252, 228, 236, 0) 95%));
    z-index: -1;
    pointer-events: none;
}

/* 顶部圆形图标块（带立体高光） */
.zibapi-stats.layout-split .stat-icon-block {
    width: 60px;
    height: 60px;
    margin: 8px auto 26px;
    border-radius: 50%;
    /* 中心白外圈染色，模拟玻璃球质感 */
    background: var(--c-icon-bg, radial-gradient(circle at 50% 38%, #fff 0%, #fde0ea 85%));
    color: var(--c-icon-color, #d83067);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 外阴影：彩色软光；内阴影：上高光 + 下暗角 */
    box-shadow: -4px 8px 17px 0px var(--c-shadow, rgba(216, 48, 103, 0.35)), inset -5px 8px 10px rgba(255, 255, 255, 0.65);
    position: relative;
}

/* 数字（每个 span 独立做渐变文字） */
.zibapi-stats.layout-split .stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 800;
    line-height: 1.1;
    gap: 1px;
    margin-top: 4px;
}
.zibapi-stats.layout-split .stat-value > * {
    background: var(--c-num-grad, linear-gradient(180deg, #d83067 0%, #ff6b94 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.zibapi-stats.layout-split .stat-number {
    font-size: 32px;
}
.zibapi-stats.layout-split .stat-prefix,
.zibapi-stats.layout-split .stat-unit {
    font-size: 22px;
    font-weight: 700;
}

.zibapi-stats.layout-split .stat-label {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted-2-color);
}

/* 数字下方短渐变分隔条 */
.zibapi-stats.layout-split .stat-divider {
    display: block;
    width: 32px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: var(--c-divider, linear-gradient(90deg, #d83067 0%, #ff8aab 100%));
    opacity: 0.85;
}

/* 底部柔和双层山峰装饰（SVG） */
.zibapi-stats.layout-split .stat-decor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 76px;
    z-index: -1;
    pointer-events: none;
    display: block;
    opacity: 0.2;
}
.zibapi-stats.layout-split .stat-decor .decor-back {
    fill: var(--c-decor-back, rgba(255, 198, 214, 0.55));
}
.zibapi-stats.layout-split .stat-decor .decor-front {
    fill: var(--c-decor-front, rgba(247, 168, 188, 0.7));
}

/* ---------- 配色集（全部 5 套） ---------- */
.zibapi-stats.layout-split .stat-item.color-pink {
    --c-bg: linear-gradient(180deg, rgba(255, 208, 224, 0.2) 0%, rgba(252, 228, 236, 0) 95%);
    --c-icon-tint: #fce4ec;
    --c-icon-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #fcd6e1 85%);
    --c-icon-color: #d83067;
    --c-num-grad: linear-gradient(180deg, #c52460 0%, #ff5e8a 100%);
    --c-divider: linear-gradient(90deg, #c52460 0%, #ff8aab 100%);
    --c-decor-back: rgba(255, 198, 214, 0.55);
    --c-decor-front: rgba(247, 168, 188, 0.78);
    --c-shadow: rgba(216, 48, 103, 0.32);
}
.zibapi-stats.layout-split .stat-item.color-purple {
    --c-bg: linear-gradient(180deg, rgba(200, 189, 255, 0.1) 0%, rgba(0, 0, 0, 0) 95%);
    --c-icon-tint: #ece8ff;
    --c-icon-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #d8d2ff 85%);
    --c-icon-color: #4d3fdb;
    --c-num-grad: linear-gradient(180deg, #3a2bc7 0%, #7d6dff 100%);
    --c-divider: linear-gradient(90deg, #3a2bc7 0%, #9089ff 100%);
    --c-decor-back: rgba(196, 188, 255, 0.55);
    --c-decor-front: rgba(160, 148, 240, 0.7);
    --c-shadow: rgba(77, 63, 219, 0.32);
}
.zibapi-stats.layout-split .stat-item.color-orange {
    --c-bg: linear-gradient(180deg, rgba(255, 222, 164, 0.15) 0%, rgba(0, 0, 0, 0) 95%);
    --c-icon-tint: #fff1d8;
    --c-icon-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #ffe0ad 85%);
    --c-icon-color: #e88a26;
    --c-num-grad: linear-gradient(180deg, #d77517 0%, #ffaa4d 100%);
    --c-divider: linear-gradient(90deg, #d77517 0%, #ffb469 100%);
    --c-decor-back: rgba(255, 207, 160, 0.55);
    --c-decor-front: rgba(245, 184, 122, 0.7);
    --c-shadow: rgba(232, 138, 38, 0.32);
}
.zibapi-stats.layout-split .stat-item.color-blue {
    --c-bg: linear-gradient(180deg, rgba(129, 171, 255, 0.1) 0%, rgba(222, 233, 255, 0) 95%);
    --c-icon-tint: #dee9ff;
    --c-icon-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #c2d4ff 85%);
    --c-icon-color: #3658e6;
    --c-num-grad: linear-gradient(180deg, #2240d4 0%, #6586ff 100%);
    --c-divider: linear-gradient(90deg, #2240d4 0%, #7aaaff 100%);
    --c-decor-back: rgba(179, 205, 255, 0.55);
    --c-decor-front: rgba(145, 175, 240, 0.7);
    --c-shadow: rgba(54, 88, 230, 0.32);
}
.zibapi-stats.layout-split .stat-item.color-green {
    --c-bg: linear-gradient(180deg, rgba(173, 255, 213, 0.1) 0%, rgba(216, 245, 230, 0) 95%);
    --c-icon-tint: #d8f5e6;
    --c-icon-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #b9eecf 85%);
    --c-icon-color: #1e9c63;
    --c-num-grad: linear-gradient(180deg, #128050 0%, #4fd093 100%);
    --c-divider: linear-gradient(90deg, #128050 0%, #4fd093 100%);
    --c-decor-back: rgba(173, 236, 200, 0.55);
    --c-decor-front: rgba(133, 215, 168, 0.7);
    --c-shadow: rgba(30, 156, 99, 0.32);
}

/* 平板：≤1024px，左右分栏堆叠为单列 */
@media (max-width: 1024px) {
    .zibapi-stats.layout-split {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px;
    }
    .zibapi-stats.layout-split .intro-title {
        font-size: 26px;
    }
}

/* 移动端断点 1：≤768px */
@media (max-width: 768px) {
    /* layout-grid */
    .zibapi-stats.layout-grid {
        padding: 20px 12px;
        gap: 12px;
    }
    .zibapi-stats.layout-grid.cols-3,
    .zibapi-stats.layout-grid.cols-4,
    .zibapi-stats.layout-grid.cols-5,
    .zibapi-stats.layout-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .zibapi-stats.layout-grid.m-cols-1 {
        grid-template-columns: 1fr !important;
    }
    .zibapi-stats.layout-grid.m-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .zibapi-stats.layout-grid.m-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .zibapi-stats.layout-grid:not(.card-plain) .stat-item + .stat-item::before {
        display: none;
    }
    .zibapi-stats.layout-grid .stat-number {
        font-size: 32px;
    }
    .zibapi-stats.layout-grid.m-cols-3 .stat-number {
        font-size: 22px;
    }
    .zibapi-stats.layout-grid.m-cols-3 .stat-prefix,
    .zibapi-stats.layout-grid.m-cols-3 .stat-unit {
        font-size: 12px;
    }

    /* layout-split 容器：圆角更小、四周留白更紧凑 */
    .zibapi-stats.layout-split {
        padding: 18px;
        border-radius: 18px;
        gap: 22px;
        box-shadow: 0 14px 38px -28px rgba(94, 104, 154, 0.25);
    }
    .zibapi-stats.layout-split .stats-intro {
        padding: 0;
    }

    /* 头部 Badge / 标题 / 副标题：保持冲击力 */
    .zibapi-stats.layout-split .intro-badge {
        padding: 6px 14px;
        font-size: 12px;
    }
    .zibapi-stats.layout-split .intro-badge i,
    .zibapi-stats.layout-split .intro-badge .icon {
        font-size: 11px;
    }
    .zibapi-stats.layout-split .intro-title {
        font-size: 22px;
        margin: 12px 0 10px;
        line-height: 1.4;
    }
    .zibapi-stats.layout-split .intro-title em {
        padding: 0;
    }
    .zibapi-stats.layout-split .intro-subtitle {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    /* Trust 徽章：保持双列，但收紧 */
    .zibapi-stats.layout-split .intro-trust-badges {
        gap: 14px;
    }
    .zibapi-stats.layout-split .trust-icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }
    .zibapi-stats.layout-split .trust-text h6 {
        font-size: 13px;
    }
    .zibapi-stats.layout-split .trust-text p {
        font-size: 12px;
        line-height: 1.55;
    }

    /* 卡片网格：默认 2 列；m-cols 可覆盖 */
    .zibapi-stats.layout-split .stats-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-1 {
        grid-template-columns: 1fr !important;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* 卡片本体 */
    .zibapi-stats.layout-split .stat-item {
        padding: 22px 12px 56px;
        border-radius: 18px;
        box-shadow: 0 12px 30px -22px rgba(94, 104, 154, 0.22);
    }
    .zibapi-stats.layout-split .stat-item::before {
        height: 52%;
    }
    .zibapi-stats.layout-split .stat-icon-block {
        width: 60px;
        height: 60px;
        font-size: 22px;
        margin: 4px auto 18px;
    }
    /* 数字略微加大、收紧字间距，保留视觉冲击 */
    .zibapi-stats.layout-split .stat-number {
        font-size: 28px;
        letter-spacing: -0.02em;
    }
    .zibapi-stats.layout-split .stat-prefix,
    .zibapi-stats.layout-split .stat-unit {
        font-size: 16px;
    }
    .zibapi-stats.layout-split .stat-label {
        font-size: 12.5px;
        margin-top: 8px;
    }
    .zibapi-stats.layout-split .stat-divider {
        width: 26px;
        height: 3px;
        margin-top: 14px;
    }
    .zibapi-stats.layout-split .stat-decor {
        height: 60px;
    }

    /* m-cols-3：三列时进一步压缩元素尺寸 */
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-item {
        padding: 16px 6px 44px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-icon-block {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin: 2px auto 10px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-icon-block::before {
        inset: -6px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-number {
        font-size: 20px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-prefix,
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-unit {
        font-size: 12px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-divider {
        width: 18px;
        height: 2px;
        margin-top: 10px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-3 .stat-decor {
        height: 44px;
    }

    /* m-cols-1：单列时让卡片更宽，icon 大一点 */
    .zibapi-stats.layout-split .stats-cards.m-cols-1 .stat-item {
        padding: 28px 20px 60px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-1 .stat-icon-block {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-1 .stat-number {
        font-size: 36px;
    }
    .zibapi-stats.layout-split .stats-cards.m-cols-1 .stat-prefix,
    .zibapi-stats.layout-split .stats-cards.m-cols-1 .stat-unit {
        font-size: 20px;
    }
}

/* 减少动效偏好：禁用入场/悬浮动画 */
@media (prefers-reduced-motion: reduce) {
    .zibapi-stats.layout-split .stat-item,
    .zibapi-stats.layout-split .stat-item:hover,
    .zibapi-stats.layout-split .stat-item:active {
        transform: none !important;
        transition: none !important;
    }
}

/* =============================================================
 * Widget 8：产品亮点卡片 zibapi-highlights
 * 三种尺寸 (large / medium / small)，多配色，每行独立列数
 * ============================================================= */
.zibapi-highlights {
    display: flex;
    flex-direction: column;
    --t-gap: 20px;
    gap: var(--t-gap);
}
.zibapi-highlights .hl-row {
    display: flex;
    gap: var(--t-gap);
    flex-wrap: wrap;
}

/* ---------- 卡片基础（白底 + 极淡主题色光晕，贴近设计稿） ---------- */
.zibapi-highlights .hl-card {
    position: relative;
    overflow: hidden;
    /* 底层近乎纯白，角上极淡彩色晕染 */
    background: radial-gradient(ellipse 85% 75% at 92% 8%, var(--hl-glow, rgba(255, 105, 150, 0.08)) 0%, transparent 52%), radial-gradient(ellipse 70% 60% at 0% 100%, var(--hl-glow-2, rgba(255, 105, 150, 0.05)) 0%, transparent 45%), var(--main-bg-color);
    border-radius: var(--hl-radius, 18px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 18px -8px rgba(94, 104, 154, 0.12);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0px 5px 20px 0 var(--main-shadow, rgba(94, 104, 154, 0.12));
}

.zibapi-highlights .hl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -16px rgba(94, 104, 154, 0.14);
}

/* 大卡片：左右两栏，padding 充裕 */
.zibapi-highlights .hl-card-large {
    padding: 28px 36px;
    --cols: 2;
    flex: 1 0 calc(100% / var(--cols) - var(--t-gap));
}

.zibapi-highlights .hl-card-large.hl-card-no-media {
    grid-template-columns: 1fr;
}

.zibapi-highlights .hl-card-media .hl-image {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 260px;
}

.zibapi-highlights .hl-image {
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* 中卡片：与大卡片类似但更紧凑 */
.zibapi-highlights .hl-card-medium {
    padding: 18px;
    --cols: 3;
    flex: 1 0 calc(100% / var(--cols) - var(--t-gap));
}

.zibapi-highlights .hl-card-medium .hl-image {
    right: 15px;
    bottom: 10px;
    width: 160px;
}

/* 小卡片：一行布局，无图无按钮 */
.zibapi-highlights .hl-card-small {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    --cols: 5;
    flex: 1 0 calc(100% / var(--cols) - var(--t-gap));
}

.zibapi-highlights .hl-card-small .hl-card-body {
    display: contents;
}

/* ---------- 头部（图标 + 标题 + 描述） ---------- */
.zibapi-highlights .hl-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.zibapi-highlights .hl-card-small .hl-card-head {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.zibapi-highlights .hl-icon-block {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--hl-icon-bg, linear-gradient(135deg, #ff5e8a, #ff8aab));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -6px var(--hl-icon-shadow, rgba(216, 48, 103, 0.35));
}

.zibapi-highlights .hl-card-large .hl-icon-block {
    width: 52px;
    height: 52px;
    font-size: 32px;
    border-radius: 13px;
}
.zibapi-highlights .hl-card-small .hl-icon-block {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 11px;
}

/* 标题 */
.zibapi-highlights .hl-text {
    min-width: 0;
    flex: 1;
}
.zibapi-highlights .hl-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--main-color);
}
.zibapi-highlights .hl-card-large .hl-title {
    font-size: 22px;
}
.zibapi-highlights .hl-card-small .hl-title {
    font-size: 14px;
}

.zibapi-highlights .hl-desc {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
}
.zibapi-highlights .hl-card-large .hl-desc {
    font-size: 14px;
}
.zibapi-highlights .hl-card-small .hl-desc {
    font-size: 12px;
    margin-top: 2px;
}

/* ---------- 功能列表 ---------- */
.zibapi-highlights .hl-features {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}
.zibapi-highlights .hl-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--muted-color);
}

.zibapi-highlights .hl-features li:last-child {
    border-bottom: none;
}
/* 设计稿：列表前勾号为浅灰色 */
.zibapi-highlights .hl-features .hl-tick {
    color: var(--muted-3-color, #b8babf);
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.95;
}

/* 大卡片字号略大 */
.zibapi-highlights .hl-card-large .hl-features li {
    padding: 8px 0;
}

.zibapi-highlights .hl-card-medium .hl-features li {
    font-size: 13px;
    padding: 6px 0;
}

/* ---------- 按钮：幽灵描边（白底透 + 主题色描边与文字，与设计稿一致） ---------- */
.zibapi-highlights .hl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 9px 22px;
    background: transparent;
    color: var(--hl-btn-text, var(--hl-icon-color, #d83067));
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--hl-btn-border, rgba(216, 48, 103, 0.42));
    box-shadow: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.zibapi-highlights .hl-btn:hover {
    transform: translateY(-1px);
    background-color: var(--hl-btn-bg-hover, rgba(216, 48, 103, 0.06));
    border-color: var(--hl-btn-border-hover, var(--hl-icon-color, #d83067));
    color: var(--hl-btn-text-hover, var(--hl-icon-color, #d83067));
    box-shadow: none;
}
.zibapi-highlights .hl-btn .fa {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.zibapi-highlights .hl-btn:hover .fa {
    transform: translateX(3px);
}

/* ---------- 配色集（6 套）：底色素到近乎白，仅角上微光 + 图标区饱和色 ---------- */
.zibapi-highlights .hl-card.color-pink {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
    --hl-glow: rgba(255, 120, 160, 0.1);
    --hl-glow-2: rgba(255, 160, 185, 0.07);
    --hl-border: rgba(216, 48, 103, 0.07);
    --hl-icon-bg: linear-gradient(145deg, #ff5e8a, #ff7ba3);
    --hl-icon-color: #d83067;
    --hl-icon-shadow: rgba(216, 48, 103, 0.35);
    --hl-btn-border: rgba(216, 48, 103, 0.38);
    --hl-btn-bg-hover: rgba(216, 48, 103, 0.07);
}
.zibapi-highlights .hl-card.color-purple {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
    --hl-glow: rgba(130, 115, 255, 0.09);
    --hl-glow-2: rgba(160, 148, 255, 0.06);
    --hl-border: rgba(77, 63, 219, 0.08);
    --hl-icon-bg: linear-gradient(145deg, #6d5fff, #8f86ff);
    --hl-icon-color: #4d3fdb;
    --hl-icon-shadow: rgba(77, 63, 219, 0.32);
    --hl-btn-border: rgba(77, 63, 219, 0.38);
    --hl-btn-bg-hover: rgba(77, 63, 219, 0.07);
}
.zibapi-highlights .hl-card.color-orange {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #fffcf6 100%);
    --hl-glow: rgba(255, 175, 90, 0.1);
    --hl-glow-2: rgba(255, 200, 130, 0.06);
    --hl-border: rgba(232, 138, 38, 0.08);
    --hl-icon-bg: linear-gradient(145deg, #ffaa4d, #ffc060);
    --hl-icon-color: #e07810;
    --hl-icon-shadow: rgba(232, 138, 38, 0.32);
    --hl-btn-border: rgba(232, 138, 38, 0.4);
    --hl-btn-bg-hover: rgba(232, 138, 38, 0.08);
}
.zibapi-highlights .hl-card.color-blue {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    --hl-glow: rgba(82, 153, 251, 0.15);
    --hl-glow-2: rgba(135, 175, 255, 0.1);
    --hl-border: rgba(54, 88, 230, 0.08);
    --hl-icon-bg: linear-gradient(145deg, #5b7dff, #7f9dff);
    --hl-icon-color: #3658e6;
    --hl-icon-shadow: rgba(54, 88, 230, 0.3);
    --hl-btn-border: rgba(54, 88, 230, 0.38);
    --hl-btn-bg-hover: rgba(54, 88, 230, 0.07);
}
.zibapi-highlights .hl-card.color-green {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    --hl-glow: rgba(60, 200, 140, 0.09);
    --hl-glow-2: rgba(100, 210, 160, 0.06);
    --hl-border: rgba(30, 156, 99, 0.08);
    --hl-icon-bg: linear-gradient(145deg, #2dbb78, #52d598);
    --hl-icon-color: #1e9c63;
    --hl-icon-shadow: rgba(30, 156, 99, 0.3);
    --hl-btn-border: rgba(30, 156, 99, 0.38);
    --hl-btn-bg-hover: rgba(30, 156, 99, 0.07);
}
.zibapi-highlights .hl-card.color-red {
    --hl-bg: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
    --hl-glow: rgba(255, 100, 100, 0.09);
    --hl-glow-2: rgba(255, 140, 140, 0.06);
    --hl-border: rgba(226, 53, 53, 0.08);
    --hl-icon-bg: linear-gradient(145deg, #ff5e5e, #ff8585);
    --hl-icon-color: #e23535;
    --hl-icon-shadow: rgba(226, 53, 53, 0.32);
    --hl-btn-border: rgba(226, 53, 53, 0.38);
    --hl-btn-bg-hover: rgba(226, 53, 53, 0.07);
}

/* ---------- 触屏 hover 残留处理 ---------- */
@media (hover: none) {
    .zibapi-highlights .hl-card:hover {
        transform: none;
    }
}

/* ---------- 响应式 ---------- */

/* 平板：≤1024px */
@media (max-width: 1024px) {
    .zibapi-highlights .hl-card-medium {
        --cols: 2;
    }

    .zibapi-highlights .hl-card-small {
        --cols: 3;
    }

    .zibapi-highlights .hl-card-large .hl-image {
        width: 160px;
    }
    .zibapi-highlights .hl-card-medium .hl-image {
        width: 110px;
    }
}

/* 手机：≤768px */
@media (max-width: 768px) {
    .zibapi-highlights {
        --t-gap: 12px;
    }

    .zibapi-highlights .hl-card-large,
    .zibapi-highlights .hl-card-medium {
        --cols: 1;
    }

    .zibapi-highlights .hl-card-small {
        --cols: 2;
    }

    .zibapi-highlights .hl-card-large {
        padding: 18px;
    }

    /* 大卡片：左右栏 → 上下栏（图在下方） */
    .zibapi-highlights .hl-card-media .hl-image {
        right: 15px;
        bottom: 30px;
        width: 180px;
    }

    .zibapi-highlights .hl-card-medium .hl-image {
        right: 15px;
        bottom: 20px;
        width: 160px;
    }

    .zibapi-highlights .hl-card-large .hl-card-media {
        order: 99;
        text-align: center;
    }

    .zibapi-highlights .hl-card-large .hl-title {
        font-size: 18px;
    }
    .zibapi-highlights .hl-card-large .hl-desc {
        font-size: 13px;
    }

    .zibapi-highlights .hl-card-medium .hl-title {
        font-size: 16px;
    }

    /* 小卡片：保持横向但稍紧 */
    .zibapi-highlights .hl-card-small {
        padding: 14px;
        gap: 10px;
    }
    .zibapi-highlights .hl-card-small .hl-icon-block {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .zibapi-highlights .hl-card-small .hl-title {
        font-size: 13px;
    }
    .zibapi-highlights .hl-card-small .hl-desc {
        font-size: 11.5px;
    }

    /* 移动端隐藏图片选项 */
    .zibapi-highlights.mobile-image-hide .hl-card-media {
        display: none;
    }

    /* 移动端按钮全宽 */
    .zibapi-highlights .hl-btn {
        margin-top: 14px;
        padding: 10px 30px;
    }

    /* 功能列表：m-cols-2 时小字号防止换行 */
    .zibapi-highlights .hl-row-large.m-cols-2 .hl-features li,
    .zibapi-highlights .hl-row-medium.m-cols-2 .hl-features li {
        font-size: 12px;
        padding: 5px 0;
        gap: 6px;
    }
    .zibapi-highlights .hl-row-large.m-cols-2 .hl-card-large .hl-image,
    .zibapi-highlights .hl-row-medium.m-cols-2 .hl-card-medium .hl-image {
        width: 70%;
    }
}

/* =============================================================
 * 销售页模块外层：全宽背景 + PC/移动独立上下外边距（由 Zib_Api_CFSwidget 输出）
 * ============================================================= */
.zibapi-widget-wrap {
    padding: var(--zibapi-mt-pc, 0) 0 var(--zibapi-mb-pc, 0);
    padding-bottom: var(--zibapi-mb-pc, 0);
    background-position: center;
    background-repeat: no-repeat;
}

.zibapi-widget-wrap.has-wrap-bg {
    background-size: var(--zibapi-bg-size, cover);
}

@media (max-width: 768px) {
    .zibapi-widget-wrap {
        padding-top: var(--zibapi-mt-m, var(--zibapi-mt-pc, 0));
        padding-bottom: var(--zibapi-mb-m, var(--zibapi-mb-pc, 0));
    }
}

/* 大标题（章节级，与 .title-theme 模块标题区分） */
.zibapi-widget-bigtitle {
    margin-bottom: 40px;
    text-align: center;
}

.zibapi-widget-bigtitle .bigtitle-text {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--key-color, #1f2433);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
}

.zibapi-widget-bigtitle .bigtitle-sub {
    margin-top: 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .zibapi-widget-bigtitle {
        margin-bottom: 20px;
    }
    .zibapi-widget-bigtitle .bigtitle-text {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .zibapi-widget-bigtitle .bigtitle-sub {
        font-size: 16px;
    }
}

/* =============================================================
 * 产品选项列表（定价卡片 + 信任条）— 仅使用 Flexbox
 * ============================================================= */
.zibapi-pricing-plans {
    --plan-blue: #5b9bff;
    --plan-pink: #e9407a;
    --plan-purple: #a274dd;
}

.zibapi-plan-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    margin-bottom: 38px;
}

.zibapi-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    max-width: 400px;
    min-width: 260px;
}

.zibapi-plan-card-inner {
    padding: 28px 24px 24px;
    border-radius: var(--a-card-radius, 18px);
    box-shadow: 0 0 10px var(--main-shadow);
    background: var(--main-bg-color, #fff);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zibapi-plan-card.is-featured .zibapi-plan-card-inner{
    border: 2px solid rgba(255, 94, 138, 0.5);
    box-shadow: 0 14px 42px -16px rgba(255, 94, 138, 0.5);
    transform: scale(1.06);
    z-index: 2;
}

.plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    background: var(--a-text-gradient-color);
    line-height: 1.3;
}

.zibapi-plan-card .plan-card-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    display: inline-block;
    width: max-content;
}

.zibapi-plan-card .plan-price-main,
.zibapi-plan-card .plan-card-title {
    background: var(--a-text-gradient-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.zibapi-plan-card .plan-card-sub {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.zibapi-plan-card.accent-blue .plan-badge,
.zibapi-plan-card.accent-blue .plan-price-main,
.zibapi-plan-card.accent-blue .plan-card-title {
    --a-text-gradient-color: linear-gradient(99deg, #55c8be 0%, #3a87fb 100%);
}
.zibapi-plan-card.accent-purple .plan-badge,
.zibapi-plan-card.accent-purple .plan-price-main,
.zibapi-plan-card.accent-purple .plan-card-title {
    --a-text-gradient-color: linear-gradient(99deg, #d68bf8 0%, #7658e2 100%);
}

.plan-card-price {
    margin-bottom: 18px;
    line-height: 1.1;
}

.plan-price-prefix {
    font-size: 20px;
    font-weight: 700;
    margin-right: 2px;
    vertical-align: baseline;
    margin-right: 6px;
}

.plan-price-main {
    font-size: 46px;
    font-weight: 800;
}

.plan-price-unit {
    margin-left: 6px;
    font-size: 14px;
    vertical-align: baseline;
}

.zibapi-plan-card.accent-blue .plan-price-main {
    color: var(--plan-blue);
}
.zibapi-plan-card.accent-pink .plan-price-main {
    color: var(--plan-pink);
}
.zibapi-plan-card.accent-purple .plan-price-main {
    color: var(--plan-purple);
}

.plan-card-divider {
    height: 0;
    margin: 0 0 18px;
    border: 0;
    border-top: 1px solid var(--main-border-color, rgba(31, 36, 51, 0.08));
}

.zibapi-plan-card.accent-pink .plan-card-divider {
    border-color: #ff5e893a;
}

.plan-card-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.plan-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--main-color, #1f2433);
}

.plan-card-features li:last-child {
    margin-bottom: 0;
}

.plan-check {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 13px;
}

.zibapi-plan-card.accent-blue .plan-check {
    color: var(--plan-blue);
}
.zibapi-plan-card.accent-pink .plan-check {
    color: var(--plan-pink);
}
.zibapi-plan-card.accent-purple .plan-check {
    color: var(--plan-purple);
}

.plan-card-action {
    margin-top: auto;
}

.zibapi-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.zibapi-plan-btn:hover {
    opacity: 0.92;
}

.zibapi-plan-btn--outline {
    border: 2px solid var(--plan-blue);
    color: var(--plan-blue) !important;
    background: transparent;
}

.zibapi-plan-btn--outline.zibapi-plan-btn--purple {
    border-color: var(--plan-purple);
    color: var(--plan-purple) !important;
}

.zibapi-plan-btn--solid.zibapi-plan-btn--pink {
    border: none;
    color: #fff !important;
    background: linear-gradient(135deg, #ff5e8a 0%, #ff3d8a 100%);
    box-shadow: 0 6px 20px -8px rgba(255, 94, 138, 0.65);
}

.zibapi-plan-btn--gradient {
    border: none;
    color: #fff !important;
    background: linear-gradient(135deg, #ff5e8a 0%, #c86dd7 100%);
    box-shadow: 0 8px 24px -10px rgba(200, 109, 215, 0.55);
}

.zibapi-plan-btn.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.plan-trial-note {
    margin: 0;
    text-align: center;
}

/* 信任条 */
.zibapi-plan-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px 20px;
    padding: 20px 22px;
    margin-bottom: 16px;
    background: var(--main-bg-color);
    box-shadow: 0 0 10px var(--main-shadow);
    border-radius: 18px;
}

.zibapi-plan-trust-item {
    display: flex;
    flex: 1 1 160px;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.trust-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 22px;
}

.zibfaq-doc-li:nth-child(6n + 1) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 1) .trust-icon-wrap {
    color: #51bcfe;
    background: linear-gradient(145deg, rgba(81, 188, 254, 0.1), rgba(81, 254, 254, 0.1));
}

.zibfaq-doc-li:nth-child(6n + 2) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 2) .trust-icon-wrap {
    color: #f961f4;
    background: linear-gradient(145deg, rgba(249, 97, 244, 0.1), rgba(150, 97, 249, 0.1));
}
.zibfaq-doc-li:nth-child(6n + 3) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 3) .trust-icon-wrap {
    color: #4aaec4;
    background: linear-gradient(145deg, rgba(74, 174, 196, 0.1), rgba(74, 196, 162, 0.1));
}
.zibfaq-doc-li:nth-child(6n + 4) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 4) .trust-icon-wrap {
    color: #8275e4;
    background: linear-gradient(145deg, rgba(130, 117, 228, 0.1), rgba(117, 191, 228, 0.1));
}
.zibfaq-doc-li:nth-child(6n + 5) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 5) .trust-icon-wrap {
    color: #53c584;
    background: linear-gradient(145deg, rgba(83, 197, 132, 0.1), rgba(150, 197, 83, 0.1));
}
.zibfaq-doc-li:nth-child(6n + 6) .zibfaq-doc-li-ico,
.zibapi-plan-trust-item:nth-child(6n + 6) .trust-icon-wrap {
    color: #dda66b;
    background: linear-gradient(145deg, rgba(221, 166, 107, 0.1), rgba(221, 132, 107, 0.1));
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trust-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.trust-desc {
    font-size: 12px;
    line-height: 1.4;
}

.zibapi-plan-foot {
    margin: 0;
    text-align: center;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .zibapi-plan-trust-item {
        flex: 1 1 auto;
        min-width: 30%;
    }
}

@media (max-width: 768px) {
    .zibapi-plan-cards {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
        gap: 20px;
    }

    .zibapi-plan-card.is-featured{
        z-index: auto;
        order: -1;

    }
    .zibapi-plan-card.is-featured .zibapi-plan-card-inner{
        transform: none;
    }

    .zibapi-plan-card {
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
    }

    .zibapi-plan-trust-bar {
        padding: 15px;
    }

    .zibapi-plan-trust-item {
        width: calc(50% - 10px);
    }
}

/* =============================================================
 * 功能介绍图文（双栏 + Tab 切换媒体，仅 Flexbox）
 * ============================================================= */
.zibapi-feature-intro {
    --fi-title-from: #2b7cff;
    --fi-title-to: #1ec8a8;
}

.zibapi-feature-intro .fi-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 100px;
}

.zibapi-feature-intro .fi-row--media-left {
    flex-direction: row-reverse;
}

.zibapi-feature-intro .fi-col {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 100%;
}

.zibapi-feature-intro .fi-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--fi-title-from), var(--fi-title-to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.zibapi-feature-intro .fi-desc {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--main-color, #3a4055);
    opacity: 0.9;
}

.zibapi-feature-intro .fi-stat {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    line-height: 1;
}

.zibapi-feature-intro .fi-stat-top {
    display: flex;
    align-items: baseline;
    line-height: 1;
    flex-direction: column;
    margin-left: 10px;
}

.zibapi-feature-intro .fi-stat-num {
    font-size: 70px;
    font-weight: 800;
    color: var(--main-color, #1f2433);
}

.zibapi-feature-intro .fi-stat-plus {
    font-size: 30px;
    font-weight: 700;
    color: var(--main-color, #1f2433);
}

.zibapi-feature-intro .fi-stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color, #1f2433);
}

.zibapi-feature-intro .fi-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 60px;
}

.zibapi-feature-intro .fi-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: var(--main-color, #1f2433);
    opacity: 0.72;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.zibapi-feature-intro .fi-tab:hover {
    opacity: 1;
}

.zibapi-feature-intro .fi-tab.is-active {
    opacity: 1;
    background: linear-gradient(90deg, var(--fi-title-from), var(--fi-title-to));
    color: #fff;
}

.zibapi-feature-intro .fi-col-media {
    position: relative;
}

.zibapi-feature-intro .fi-panels {
    position: relative;
    z-index: 1;
}

.zibapi-feature-intro .fi-panel {
    display: none;
}

.zibapi-feature-intro .fi-panel.is-active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.fi-panels.imgbox-container img {
    cursor: zoom-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.zibapi-feature-intro .fi-browser {
    border-radius: var(--a-card-radius);
    overflow: hidden;
    background: var(--main-bg-color, #fff);
    box-shadow: 0 16px 48px -24px rgba(41, 55, 99, 0.35);
    border: 2px solid var(--main-border-color, rgba(31, 36, 51, 0.1));
}

.zibapi-feature-intro .fi-browser-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(31, 36, 51, 0.04);
    border-bottom: 1px solid var(--main-border-color, rgba(31, 36, 51, 0.08));
}

.zibapi-feature-intro .fi-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zibapi-feature-intro .fi-browser-bar span:nth-child(1) {
    background: #ff5f57;
}
.zibapi-feature-intro .fi-browser-bar span:nth-child(2) {
    background: #febc2e;
}
.zibapi-feature-intro .fi-browser-bar span:nth-child(3) {
    background: #28c840;
}

.zibapi-feature-intro .fi-browser-body {
    border-radius: 0;
}

.zibapi-feature-intro .fi-browser-nochrome {
    border: none;
    box-shadow: 0 16px 48px -24px rgba(41, 55, 99, 0.28);
}

.zibapi-feature-intro .fi-browser-nochrome .fi-browser-body {
    border-radius: var(--a-card-radius);
}

.zibapi-feature-intro .fi-media-plain .fi-browser-body {
    background: transparent;
    padding: 0;
}

@media (max-width: 768px) {
    .zibapi-feature-intro .fi-row,
    .zibapi-feature-intro .fi-row--media-left {
        flex-direction: column;
    }
    .zibapi-feature-intro .fi-row {
        gap: 20px;
    }

    .zibapi-feature-intro .fi-col {
        flex: 1 1 100%;
        width: 100%;
    }

    .zibapi-feature-intro .fi-col.fi-col-text {
        text-align: center;
    }

    .zibapi-feature-intro .fi-stat,
    .zibapi-feature-intro .fi-title,
    .zibapi-feature-intro .fi-desc {
        margin-bottom: 15px;
    }

    .zibapi-feature-intro .fi-stat,
    .zibapi-feature-intro .fi-tabs {
        margin-top: 10px;
        justify-content: center;
    }
}
