/* 悬浮广告容器 */
.floating-ad {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    
    /* 关键：使用Flexbox居中内容 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 0px; 
    right: 0px; 
    cursor: pointer;
    font-size: 10px; 
    padding: 2px 4px;
    background-color: rgba(0, 0, 0, 0.6); 
    color: white; 
    border-radius: 0 0 0 5px; 
    line-height: 1; 
    transition: background-color 0.2s;
    z-index: 1001; 
}

.close-btn:hover {
    background-color: rgba(255, 0, 0, 0.8); 
}

/* 联系链接图标样式 */
.contact-link {
    display: flex; 
    flex-direction: column; 
    align-items: center;    
    text-decoration: none;  
    color: #333;            
    transition: opacity 0.3s ease; 
}

.contact-image {
    display: block;
    width: 60px; /* 缩小以适应浮窗 */
    height: 60px; /* 缩小以适应浮窗 */
    border-radius: 8px; 
}

.contact-text {
    margin-top: 5px; 
    font-size: 12px; /* 缩小文字 */
}

.contact-link:hover {
    opacity: 0.85; 
}