/* 飘窗样式 */
.floating-window {
    position: fixed;
    width: 220px;
    height: 160px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #9a241a;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    cursor: move;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.floating-window:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.floating-window-header {
    background: linear-gradient(135deg, #9a241a, #7a1c15);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.floating-window-header span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
}

.floating-window-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.floating-window-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.floating-window-content {
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    height: calc(100% - 40px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    text-indent: 2em;
}

.floating-window-content a {
    color: #9a241a;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 12px;
    text-indent: 2em;
}

.floating-window-content a:hover {
    background-color: #fef2f2;
    color: #7a1c15;
}

.floating-window-content a:before {
    content: none;
}

/* 飘窗动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-window {
    animation: float 4s ease-in-out infinite;
}

/* 滚动条样式 */
.floating-window-content::-webkit-scrollbar {
    width: 4px;
}

.floating-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.floating-window-content::-webkit-scrollbar-thumb {
    background: #9a241a;
    border-radius: 2px;
}

.floating-window-content::-webkit-scrollbar-thumb:hover {
    background: #7a1c15;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-window {
        width: 180px;
        height: 130px;
        font-size: 12px;
    }
    
    .floating-window-header {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .floating-window-content {
        padding: 8px;
        font-size: 11px;
    }
    
    .floating-window-content a {
        font-size: 11px;
        margin-bottom: 6px;
    }
} 