* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    background-image: url('../src/bg4.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../src/bg4.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.content {
    text-align: center;
    z-index: 10;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    /* color: #2E7D32; */
    color: #000000;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.customer-service {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.customer-service:hover {
    transform: scale(1.05);
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4CAF50;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.avatar-container:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border-color: #2E7D32;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.service-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E7D32;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #4CAF50;
    transition: all 0.3s ease;
}

.customer-service:hover .service-text {
    background: rgba(255,255,255,0.95);
    border-color: #2E7D32;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        background-image: url('../src/bg3.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .service-text {
        font-size: 1.2rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        letter-spacing: 1px;
    }
    
    .avatar-container {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    .service-text {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }
    
    .customer-service {
        gap: 0.8rem;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.customer-service {
    animation: float 3s ease-in-out infinite;
}

.customer-service:hover {
    animation-play-state: paused;
}

/* 悬浮客服窗口 */
.floating-customer-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

.floating-customer-service:hover {
    width: 70px;
    height: 90px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
}

.floating-cs-icon {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.floating-customer-service:hover .floating-cs-icon {
    font-size: 28px;
    transform: scale(1.1);
}

.floating-cs-text {
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.floating-customer-service:hover .floating-cs-text {
    font-size: 11px;
}

/* 悬浮客服动画 */
@keyframes floatSide {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

.floating-customer-service {
    animation: floatSide 3s ease-in-out infinite;
}

.floating-customer-service:hover {
    animation-play-state: paused;
}

/* 响应式设计 - 悬浮客服 */
@media (max-width: 768px) {
    .floating-customer-service {
        width: 50px;
        height: 70px;
        right: 15px;
    }
    
    .floating-customer-service:hover {
        width: 55px;
        height: 75px;
    }
    
    .floating-cs-icon {
        font-size: 20px;
    }
    
    .floating-customer-service:hover .floating-cs-icon {
        font-size: 22px;
    }
    
    .floating-cs-text {
        font-size: 9px;
    }
    
    .floating-customer-service:hover .floating-cs-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .floating-customer-service {
        width: 45px;
        height: 60px;
        right: 10px;
    }
    
    .floating-customer-service:hover {
        width: 50px;
        height: 65px;
    }
    
    .floating-cs-icon {
        font-size: 18px;
    }
    
    .floating-customer-service:hover .floating-cs-icon {
        font-size: 20px;
    }
    
    .floating-cs-text {
        font-size: 8px;
    }
    
    .floating-customer-service:hover .floating-cs-text {
        font-size: 9px;
    }
}