/* 品牌点缀色 */
:root {
    --zh-primary: #063190;
    --zh-accent: #2DB7A4;
    --zh-text: #2c3e50;
    --zh-text-muted: #5a6b7d;
    --zh-bg: #ffffff;
    --zh-bg-soft: #f4faf7;
}

/* 右侧浮动区：展会 + 客服 */
.side-float-wrap {
    position: fixed;
    right: 20px;
    top: calc(50% + 170px);
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.side-float-wrap .kefu-container {
    position: static;
    top: auto;
    right: auto;
    transform: none;
}

/* 展会漂浮卡片 - 白底 + 点缀色 */
.zhanhui-float-card {
    position: relative;
    width: 330px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--zh-bg);
    border: 1px solid rgba(45, 183, 164, 0.22);
    border-left: 4px solid var(--zh-accent);
    box-shadow:
        0 10px 36px rgba(45, 183, 164, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.04);
    animation: zhanhuiSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zhanhui-float-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 42px rgba(45, 183, 164, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

@keyframes zhanhuiSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 顶部渐变点缀线 */
.zhanhui-float-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zh-accent) 0%, #5ecfc0 70%, var(--zh-primary) 100%);
    pointer-events: none;
}

/* 淡雅网格点缀 */
.zhanhui-float-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 183, 164, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 183, 164, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 60%);
    pointer-events: none;
}

.zhanhui-float-inner {
    position: relative;
    z-index: 1;
    padding: 16px 16px 0;
    background: var(--zh-bg);
}

/* 顶部 */
.zhanhui-float-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.zhanhui-float-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    background: rgba(45, 183, 164, 0.08);
    border: 1px solid var(--zh-accent);
    color: #259B8A;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zhanhui-float-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--zh-accent);
    box-shadow: 0 0 0 2px rgba(45, 183, 164, 0.25);
}

.zhanhui-float-close {
    width: 26px;
    height: 26px;
    border: 1px solid #e8ecf0;
    background: var(--zh-bg);
    color: #94a3b8;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.zhanhui-float-close:hover {
    color: #259B8A;
    border-color: var(--zh-accent);
    background: rgba(45, 183, 164, 0.08);
}

/* 标题 */
.zhanhui-float-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #063190;
    letter-spacing: -0.01em;
}

/* 信息行 */
.zhanhui-float-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.zhanhui-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--zh-bg-soft);
    border: 1px solid rgba(45, 183, 164, 0.2);
    border-left: 3px solid var(--zh-accent);
}

.zhanhui-meta-label {
    flex: 0 0 62px;
    font-size: 11px;
    font-weight: 700;
    color: #2DB7A4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.zhanhui-meta-value {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--zh-text);
    word-break: break-word;
}

.zhanhui-meta-time {
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 600;
    color: var(--zh-text);
    letter-spacing: 0.03em;
}

/* View More 底部按钮 */
.zhanhui-float-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 -16px;
    padding: 13px 16px;
    background: #063190;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 2px solid var(--zh-accent);
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.zhanhui-float-more:hover {
    background: #052a7a;
    color: #fff;
}

.zhanhui-float-more svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.zhanhui-float-more:hover svg {
    transform: translateX(4px);
}

.zhanhui-float-more.is-static {
    cursor: default;
    opacity: 0.75;
}

.zhanhui-float-more.is-static:hover {
    background: #063190;
}

.zhanhui-float-card.is-hidden {
    display: none;
}

/* 移动端 */
@media (max-width: 768px) {
    .side-float-wrap {
        right: 10px;
        top: auto;
        bottom: 10px;
        transform: none;
        gap: 10px;
    }

    .zhanhui-float-card {
        width: min(310px, calc(100vw - 76px));
        border-radius: 12px;
    }

    .zhanhui-float-inner {
        padding: 14px 14px 0;
    }

    .zhanhui-float-title {
        font-size: 1.05rem;
    }

    .zhanhui-meta-label {
        flex: 0 0 56px;
        font-size: 10px;
    }

    .zhanhui-meta-value {
        font-size: 11.5px;
    }

    .zhanhui-float-more {
        margin: 0 -14px;
        padding: 12px 14px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .zhanhui-float-card {
        width: calc(100vw - 68px);
    }
}
