/* 自定义样式覆盖 */

/* 更新树的背景图样式 */
.tree-background {
    background-image: url('images/image.png') !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 自定义容器样式，使其更好地适应宽屏图片 */
.tree-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    margin: 0 auto;
}

/* 自定义果实样式，设为透明 */
.fruit {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-image: none !important;
    background-color: transparent !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fruit:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    filter: brightness(1.2);
    z-index: 100;
}

/* 移除果实颜色，保持透明 */
.fruit-1, .fruit-2, .fruit-3, .fruit-4, .fruit-5 {
    background: transparent !important;
}

/* 果实容器样式 */
.fruit-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    transform: translateX(-40px);
}

/* 果实标签样式 */
.fruit-label {
    margin-top: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #333;
    text-shadow: 0px 0px 3px white, 0px 0px 3px white, 0px 0px 3px white, 0px 0px 3px white;
    pointer-events: none;
    padding: 3px 6px; /* 添加内边距：上下3像素，左右6像素，使标签文本与边缘保持一定距离 */
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

/* 更好看的工具提示 */
.tooltip {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tree-container {
        height: 70vh;
        max-width: 100%;
    }
    
    .fruit {
        width: 30px;
        height: 30px;
    }
    
    .fruit-label {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* 添加页面过渡动画 */
body {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 改进的页脚 */
footer {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #555;
    padding: 15px 20px;
    text-align: center;
}

/* 页脚标题样式 */
footer h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #333;
    letter-spacing: 1px;
}

/* 提示文字样式 */
footer .hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
} 