/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 页面基础样式 */
.kkce-body {
    background-color: #1f2937;
    min-height: 200vh;
    color: #fff;
}

/* 页面内容容器 */
.kkce-content-wrapper {
    padding: 2rem;
}

/* 标题样式 */
.kkce-main-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 提示文本 */
.kkce-hint-text {
    color: #9ca3af;
}

/* 右侧悬浮容器 */
.kkce-float-container {
    position: fixed;
    right: 0;
    top: 83%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 12px;
}

/* 切换到手机端 */
/* 优先匹配手机端（不受viewport:1300影响） */
@media (max-device-width: 768px),
(min-resolution: 2dppx) and (max-width: 1300px),
(hover: none) and (pointer: coarse) {
    .kkce-float-container {
        /* 切换到手机端往上移，目前切到手机端太靠下 */
        top: 50%;
    }
}


/* 悬浮按钮通用样式 */
.kkce-float-btn {
    width: 72px;
    height: 80px;
    border-radius: 16px 0 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
}

/* HOT标签 */
.hot-tag {
    position: absolute;
    top: -8px;
    right: 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.kkce-copy-icon {
    margin-left: 6px;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    transition: all .2s;
}

.kkce-copy-icon:hover {
    color: #0D6EFD;
    transform: scale(1.1);
}


/* 邀请返点按钮 */
.kkce-float-btn--invite {
    background: linear-gradient(180deg, #f97316 0%, #dc2626 100%);
}

.kkce-float-btn--invite:hover {
    transform: translateX(-8px);
    box-shadow: -8px 8px 25px rgba(220, 38, 38, 0.4);
}

/* QQ按钮 */
.kkce-float-btn--qq {
    background: linear-gradient(180deg, #0ea5e9 0%, #2563eb 100%);
}

.kkce-float-btn--qq:hover {
    transform: translateX(-8px);
    box-shadow: -8px 8px 25px rgba(37, 99, 235, 0.4);
}

/* 返回顶部按钮 */
.kkce-float-btn--top {
    background: linear-gradient(180deg, #a855f7 0%, #ec4899 100%);
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
}

/* 返回顶部按钮显示状态 */
.kkce-float-btn--top.kkce-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 返回顶部按钮hover效果（新增） */
.kkce-float-btn--top:hover {
    transform: translateX(-8px);
    box-shadow: -8px 8px 25px rgba(236, 72, 153, 0.4);
}

/* 图标容器 */
.kkce-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 图标样式 */
.kkce-icon-text {
    color: white;
    font-size: 20px;
}

/* 按钮文字 */
.kkce-btn-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* ========================= */
/* QQ 弹出卡片 */
/* ========================= */
.kkce-qq-panel {
    position: absolute;
    left: -250px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    width: 220px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 20px 16px;
    text-align: center;
    z-index: 999;
}

/* 防止鼠标断层 */
.kkce-qq-panel::after {
    content: "";
    position: absolute;
    right: -25px;
    top: 0;
    width: 25px;
    height: 100%;
}

/* 左侧小三角 */
.kkce-qq-panel::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

/* 显示逻辑 */
.kkce-float-btn--qq:hover .kkce-qq-panel,
.kkce-qq-panel:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.kkce-qq-icon {
    width: 48px;
    height: 48px;
    background: #1677ff;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kkce-qq-icon .kkce-icon-text {
    color: #fff;
    font-size: 22px;
}

.kkce-qq-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.kkce-qq-qr {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
}

.kkce-qq-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.kkce-qq-number {
    font-size: 14px;
    color: #666;
}