/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 主按钮 */
.back-to-top-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.back-to-top-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 悬停提示框 */
.back-to-top-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover .back-to-top-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 联系方式列表 */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* 返回顶部按钮 */
.back-to-top-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

.back-to-top-btn i {
    font-size: 14px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .back-to-top {
        right: 15px;
        bottom: 140px;
    }
    
    .back-to-top-main {
        width: 65px;
        height: 65px;
    }
    
    .back-to-top-icon {
        font-size: 20px;
    }
    
    .back-to-top-text {
        font-size: 10px;
    }
    
    .contact-item {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .contact-item .contact-icon {
        font-size: 14px;
        margin-right: 6px;
        width: 18px;
    }
}

/* 联系方式直接显示样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-5px);
}

.contact-item .contact-icon {
    font-size: 16px;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.contact-item .contact-text {
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.contact-qr {
    margin-top: 8px;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-qr img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.contact-qr div {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

@media screen and (max-width: 480px) {
    .back-to-top {
        right: 10px;
        bottom: 160px;
    }
    
    .back-to-top-main {
        width: 55px;
        height: 55px;
    }
    
    .back-to-top-icon {
        font-size: 18px;
    }
    
    .back-to-top-text {
        font-size: 9px;
    }
    
    .contact-item {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .contact-item .contact-icon {
        font-size: 13px;
        margin-right: 5px;
        width: 16px;
    }
}
