/**
 * 前端样式 - 圆形电话按钮 + 脉冲光环动效
 * 按钮右侧居中，点击跳转，悬停放大
 * 联系信息卡片：16px字体，继承主题颜色
 */

/* ========== 浮动按钮 ========== */
.cui-fab {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    cursor: pointer;
    /* right 值由 PHP 动态内联样式覆盖 */
}

/* 按钮主体 + 脉冲光环 */
.cui-fab-inner {
    position: relative;
    background: linear-gradient(145deg, #f8575c, #e43a2e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}

/* 脉冲光环伪元素 */
.cui-fab-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(248, 87, 92, 0.4);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: cui-pulse 1.8s ease-out infinite;
}

/* 脉冲动画：光环扩散并淡出 */
@keyframes cui-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* 图标样式 */
.cui-icon {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

/* 悬停时：按钮放大，光环动画暂停 */
.cui-fab:hover .cui-fab-inner {
    transform: scale(1.1);
    background: linear-gradient(145deg, #ff6b6f, #f0473a);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.cui-fab:hover .cui-fab-inner::before {
    animation: none;          /* 悬停时停止光环脉冲，避免干扰 */
}

.cui-fab:hover .cui-icon {
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cui-fab-inner {
        width: 36px;
        height: 36px;
    }
    .cui-icon {
        width: 18px;
        height: 18px;
    }
}

/* ========== 联系信息卡片 ========== */
/* 强制所有文字为16px */
.cui-contact-info,
.cui-contact-info * {
    font-size: 16px;
}

.cui-contact-info {
    background: #ffffff;
    border-radius: 32px;
    padding: 2rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    color: inherit;
    line-height: 1.5;
}

.cui-contact-info:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.06);
}

.cui-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cui-contact-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.8rem;
}

.cui-contact-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cui-contact-list strong {
    min-width: 100px;
    font-weight: 600;
    color: inherit;
    opacity: 0.75;
}

.cui-contact-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.cui-contact-list a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* 微信二维码 */
.cui-wechat-qr {
    max-width: 140px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border: 2px solid #fff;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cui-wechat-qr:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* 响应式 */
@media (max-width: 640px) {
    .cui-contact-info {
        padding: 1.5rem;
        border-radius: 24px;
    }
    .cui-contact-list li {
        flex-direction: column;
        gap: 0.3rem;
    }
    .cui-contact-list strong {
        min-width: auto;
    }
    .cui-wechat-qr {
        max-width: 110px;
    }
}