@charset "utf-8";

/* 浮动层样式 */
.floating-layer {
    position: fixed;
    padding: 12px;
    bottom: 20px;
    right: 20px;
    width: 340px;
    background: #14142c;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.floating-layer.floating-hidden {
    transform: translateX(100%);
    opacity: 0;
}

.floating-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.floating-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.floating-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.floating-content {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.5;
}

.floating-content p {
    margin: 0 0 10px 0;
}

.floating-content p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-layer {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .floating-layer {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 5px;
    }
}