* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 确保初始状态下hover效果正常 */
.icon-wrapper {
    transition: all 0.3s ease !important;
}

.icon-wrapper:hover {
    transform: translateY(-3px) !important;
    color: #fff !important;
}

.slide-content-center {
    transition: all 0.3s ease !important;
}

.visit-btn {
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 动态背景 */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-out;
}

.particle.glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
}

.particle.colorful {
    background: radial-gradient(circle, rgba(255, 100, 150, 0.6) 0%, rgba(100, 200, 255, 0.4) 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(255, 100, 150, 0.4);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: rippleEffect 2s ease-out forwards;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 光线效果 */
.light-ray {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    animation: rayMove 4s linear infinite;
}

@keyframes rayMove {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.2); 
        opacity: 1;
    }
}

/* 鼠标跟随光晕 */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: all 0.1s ease-out;
    mix-blend-mode: screen;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 6px;
    object-fit: contain;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.contact-icons {
    display: flex;
    gap: 20px;
}

.icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.icon-wrapper i {
    font-size: 24px;
    color: white;
}

/* 微信图标颜色 */
#wechat-icon:hover {
    background: rgba(7, 193, 96, 0.8);
}

/* QQ图标颜色 */
#qq-icon:hover {
    background: rgba(18, 183, 245, 0.8);
}

/* 邮箱图标颜色 */
#email-icon:hover {
    background: rgba(234, 67, 53, 0.8);
}

/* 二维码弹窗 */
.qr-popup {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.qr-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-content {
    padding: 25px;
    text-align: center;
}

.popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

#wechat-popup .popup-icon {
    color: #07c160;
}

#qq-popup .popup-icon {
    color: #12b7f5;
}

.popup-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.qr-placeholder i {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.qr-placeholder p {
    color: #666;
    font-size: 12px;
}

/* 二维码图片样式 */
.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 二维码图片悬停效果 */
.qr-image:hover {
    transform: scale(2.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 40px 80px;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 10;
}

/* 禁用非激活幻灯片按钮点击，避免首屏误触 */
.slide:not(.active) .visit-btn {
    pointer-events: none;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) blur(1px);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.slide-content-center {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    color: white;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 确保所有slide-content-center都有hover效果 */
.slide-content-center:hover,
.slide .slide-content-center:hover,
.slide.active .slide-content-center:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.slide-content-center h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content-center p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.visit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
    margin: 0 auto;
    min-width: 140px;
    text-align: center;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(45deg, #7c8ef0, #8a5cb8);
}

/* 导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 指示器 */
.indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 底部样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .logo-img {
        height: 32px;
        width: auto;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .icon-wrapper i {
        font-size: 20px;
    }
    
    .main-content {
        padding: 80px 20px 60px;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-content-center {
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .slide-content-center h2 {
        font-size: 36px;
    }
    
    .slide-content-center p {
        font-size: 16px;
    }
    
    .qr-popup {
        width: 250px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .slide-content-center {
        padding: 25px 20px;
    }
    
    .slide-content-center h2 {
        font-size: 28px;
    }
    
    .slide-content-center p {
        font-size: 14px;
    }
    
    .qr-popup {
        width: 220px;
        right: -80px;
    }
}