/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* 背景图片容器 */
#background {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* 背景图片样式 */
#bg-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    z-index: 1;
}

/* 粒子动画容器 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 主入口容器 */
.interactive-entry {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
    width: 300px;
    top: 70vh;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 主入口按钮图片 */
.entry-button {
    width: 100%;
    height: auto;
    animation: gentle-bounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.entry-button:hover {
    transform: scale(1.05);
}

/* 次要入口按钮 */
.secondary-entry {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.secondary-entry:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes gentle-bounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px) scale(1.03);
        opacity: 0.95;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 背景图片适配 */
    #bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* 允许手机端粒子交互 */
    #particles-js {
        pointer-events: auto;
    }

    /* 主入口适配 */
    .interactive-entry {
        width: 60%;
        top: 65vh;
    }
    
    /* 次要入口适配 */
    .secondary-entry {
        padding: 8px 16px;
        font-size: 14px;
    }
}