/* =========================================================
 * chuxia-convert.css
 * 单色系转化模块：吸顶 CTA、右下角咨询浮窗、文章相关推荐卡片化
 * 所有颜色均引用 style.css 的 --c-* 变量（随后台主色实时衍生）
 * ========================================================= */

/* ---------- 右下角咨询浮窗 ---------- */
.chuxia-float { position: fixed; right: 24px; bottom: 24px; z-index: 9998; }
.chuxia-float__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .20);
    transition: transform .2s ease, background .2s ease;
}
.chuxia-float__btn:hover { transform: scale(1.08); background: var(--c-primary-700); }
.chuxia-float__panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 232px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.chuxia-float.is-open .chuxia-float__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.chuxia-float__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-text);
    transition: background .2s ease, color .2s ease;
}
.chuxia-float__item:hover { background: var(--c-primary-050); color: var(--c-primary-800); }
.chuxia-float__item .ic {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--c-primary-050);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}
.chuxia-float__item .lb { font-size: 13px; font-weight: 600; line-height: 1.3; display: block; }
.chuxia-float__item .vl { font-size: 12px; color: var(--c-muted); line-height: 1.3; display: block; }

/* ---------- 文章相关推荐卡片化（flex 两列网格 + 缩略图贴边填满） ---------- */
.post-related { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.post-related .h3 {
    flex: 0 0 100%;        /* 标题独占一行 */
    width: 100%;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--c-primary);
    margin: 0 0 18px;
}
.post-related .post-r {
    float: none;                       /* 覆盖 style.css 的 float:left */
    width: auto;
    flex: 1 1 calc(50% - 7px);         /* 两列网格，gap 14px */
    box-sizing: border-box;
    margin: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 0;                        /* 图片贴边，文字单独留白 */
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-related .post-r:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    border-color: var(--c-primary);
}
.post-related .post-r a { display: block; overflow: hidden; }
.post-related .post-r span {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;               /* CorePress 式固定比例，卡片整齐统一 */
    margin: 0;
    border-radius: 0;                  /* 贴边无圆角，填满卡片顶部 */
    overflow: hidden;
    box-shadow: none;
    background: var(--c-bg-soft);
}
.post-related .post-r span img {
    width: 100%;
    height: 100%;
    object-fit: cover;                 /* CorePress：填满卡片、比例统一、无留白 */
    display: block;
    transition: transform .35s ease;
}
.post-related .post-r:hover span img { transform: scale(1.06); }
.post-related .post-r h3 {
    color: var(--c-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    padding: 12px 12px 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;             /* 标题最多两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-related .post-r:hover h3 { color: var(--c-primary); }
.post-related .post-r p.tip {
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.6;
    padding: 6px 12px 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;             /* 摘要最多两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 窄屏单列，避免缩略图过窄 */
@media screen and (max-width: 600px) {
    .post-related .post-r { flex: 1 1 100%; }
}

/* 联系按钮内的 SVG 图标尺寸（使用 currentColor 继承按钮白色） */
.chuxia-float__btn svg { width: 26px; height: 26px; display: block; }

/* ---------- 响应式：窄屏适配 ---------- */
@media screen and (max-width: 640px) {
    .chuxia-float { right: 14px; bottom: 14px; }
}

/* ---------- 标签集合：类 CorePress 3D 旋转标签云 ---------- */
.tags-3d {
    position: relative;
    height: 260px;
    overflow: hidden;
    margin-top: 6px;
}
.tags-3d a {
    position: absolute;
    left: 50%;
    top: 50%;
    float: none;                 /* 覆盖 style.css .tags a 的 float/width */
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 5px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: var(--c-text);
    cursor: pointer;
    transform-origin: 0 0;
    transition: color .2s ease;
    will-change: transform, opacity;
}
.tags-3d a:hover { color: var(--c-primary); }
