/* 首页样式 - UI设计图匹配版本 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 主容器 */
.ui-homepage-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.ui-homepage-container.loaded {
    opacity: 1;
}

/* 主背景 */
.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landscape-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* 装饰层 */
.decorative-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* 太阳装饰组合 */
.sun-decoration {
    position: absolute;
    top: 15vh;
    right: 20vw;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5vh;
    pointer-events: auto;
}

.sun-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-glow-bg {
    position: absolute;
    width: 25vw;
    height: 25vw;
    max-width: 360px;
    max-height: 360px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
    animation: sunGlowRotate 8s linear infinite;
    filter: brightness(1.2) saturate(1.5);
    pointer-events: none;
}

.sun-container:hover .sun-glow-bg {
    opacity: 1;
    transform: scale(1.5);
}

/* 添加调试边框来测试悬停区域 */
.sun-decoration {
    /* border: 2px dashed red; */
    min-width: 15vw;
    min-height: 15vh;
}

.sun-decoration:hover {
    /* background: rgba(255, 0, 0, 0.1); */
}

.sun-element {
    position: relative;
    width: 12.5vw;
    height: 12.5vw;
    max-width: 180px;
    max-height: 180px;
    filter: drop-shadow(0 0 2vw rgba(255, 100, 100, 0.6));
    animation: sunPulse 3s ease-in-out infinite alternate;
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.sun-element:hover {
    filter: drop-shadow(0 0 3vw rgba(255, 200, 100, 1)) drop-shadow(0 0 4vw rgba(255, 150, 50, 0.8));
    transform: scale(1.1);
}

@keyframes sunGlowRotate {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

@keyframes sunPulse {
    0% { 
        filter: drop-shadow(0 0 1.5vw rgba(255, 100, 100, 0.6));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 2vw rgba(255, 100, 100, 0.9));
        transform: scale(1.05);
    }
}

/* Group 13装饰 */
.group13-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group13-element {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.3vw 0.3vw 1.1vw rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
}

.group13-element:hover {
    transform: scale(1.05);
    filter: drop-shadow(0.4vw 0.4vw 1.7vw rgba(0, 0, 0, 0.4));
}

/* 左上角仙鹤组合 */
.top-left-decoration {
    position: absolute;
    top: 5vh;
    left: 20vw;
    z-index: 6;
    pointer-events: auto;
}

.crane-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    pointer-events: auto;
}

.crane-element-top {
    width: 25vw;
    height: auto;
    max-width: 360px;
    filter: drop-shadow(0.6vw 0.6vw 2.1vw rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.ai-agent-label {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.14vw 0.14vw 0.56vw rgba(0, 0, 0, 0.3));
    opacity: 0.95;
    transition: all 0.3s ease;
}

.crane-group:hover .crane-element-top {
    transform: scale(1.05);
    filter: drop-shadow(0.3vw 0.3vw 1.04vw rgba(0, 0, 0, 0.5));
}

.crane-group:hover .ai-agent-label {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0.21vw 0.21vw 0.83vw rgba(0, 0, 0, 0.4));
}

/* 仙鹤装饰 */
.crane-decoration {
    position: absolute;
    top: 12vh;
    left: 8vw;
    z-index: 3;
}

.crane-element {
    width: 5.6vw;
    height: auto;
    max-width: 80px;
    filter: drop-shadow(0.14vw 0.14vw 0.56vw rgba(0, 0, 0, 0.3));
}



/* 左侧树林组合 */
.left-tree-decoration {
    position: absolute;
    bottom: 57vh;
    left: 1vw;
    z-index: 6;
    pointer-events: auto;
}

.tree-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5vh;
    pointer-events: auto;
}

.tree-glow-element {
    width: 96vw;
    height: auto;
    max-width: 1382px;
    filter: drop-shadow(1.2vw 1.2vw 3.6vw rgba(0, 150, 100, 0.4));
    transition: all 0.6s ease;
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    top: -15vh;
    left: 0;
    z-index: 2;
}

.group16-label {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.14vw 0.14vw 0.56vw rgba(0, 0, 0, 0.3));
    opacity: 0.95;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
    position: absolute;
    left: 12vw;
    top: 35vh;
}

.tree-group:hover .tree-glow-element {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(1.5vw 1.5vw 4.5vw rgba(0, 150, 100, 0.6));
}

.tree-group:hover .group16-label {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0.21vw 0.21vw 0.83vw rgba(0, 0, 0, 0.4));
}

/* 右下角金币组合 */
.bottom-right-decoration {
    position: absolute;
    bottom: 10vh;
    right: 15vw;
    z-index: 6;
    pointer-events: auto;
}

.coin-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4vh;
    pointer-events: auto;
}

.main-coin-element {
    width: 25vw;
    height: 15.8vh;
    max-width: 360px;
    max-height: 227px;
    filter: drop-shadow(0.63vw 0.63vw 2.08vw rgba(255, 215, 0, 0.4));
    transition: all 0.3s ease;
    cursor: pointer;
    object-fit: contain;
}

.main-coin-element:hover {
    transform: scale(1.1);
    filter: drop-shadow(0.83vw 0.83vw 2.78vw rgba(255, 215, 0, 0.6));
}

.main-coin-element.coin-glowing {
    filter: drop-shadow(1.04vw 1.04vw 3.47vw rgba(255, 215, 0, 1)) 
            drop-shadow(0 0 2.08vw rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 4.17vw rgba(255, 215, 0, 0.6));
    animation: coinGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes coinGlowPulse {
    0% { 
        filter: drop-shadow(1.04vw 1.04vw 3.47vw rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 2.08vw rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 4.17vw rgba(255, 215, 0, 0.6));
        transform: scale(1.1);
    }
    100% { 
        filter: drop-shadow(1.39vw 1.39vw 4.17vw rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 2.78vw rgba(255, 255, 255, 1))
                drop-shadow(0 0 5.56vw rgba(255, 215, 0, 0.8));
        transform: scale(1.15);
    }
}

.group17-label {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.14vw 0.14vw 0.56vw rgba(0, 0, 0, 0.3));
    opacity: 0.95;
    transition: all 0.3s ease;
}

.coin-group:hover .group17-label {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0.21vw 0.21vw 0.83vw rgba(0, 0, 0, 0.4));
}

/* Group 18装饰 - 太阳下边靠右位置 */
.group18-decoration {
    position: absolute;
    top: 42vh;
    right: 8vw;
    z-index: 5;
    pointer-events: auto;
}

.group18-element {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.4vw 0.4vw 1.2vw rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    opacity: 0.9;
    animation: group18Float 4s ease-in-out infinite alternate;
}

.group18-element:hover {
    transform: scale(1.05);
    filter: drop-shadow(0.5vw 0.5vw 1.5vw rgba(0, 0, 0, 0.4));
    opacity: 1;
}

@keyframes group18Float {
    0% { 
        transform: translateY(0) scale(1);
        filter: drop-shadow(0.4vw 0.4vw 1.2vw rgba(0, 0, 0, 0.3));
    }
    100% { 
        transform: translateY(-1vh) scale(1.01);
        filter: drop-shadow(0.5vw 0.5vw 1.4vw rgba(0, 0, 0, 0.35));
    }
}

/* Group 19装饰 - 背景中间靠下位置 */
.group19-decoration {
    position: absolute;
    bottom: 15vh;
    left: 45%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: auto;
}

.group19-element {
    width: 16.7vw;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0.6vw 0.6vw 1.8vw rgba(0, 0, 0, 0.25));
    transition: all 0.3s ease;
    opacity: 0.85;
    animation: group19Pulse 5s ease-in-out infinite alternate;
}

.group19-element:hover {
    transform: scale(1.03);
    filter: drop-shadow(0.8vw 0.8vw 2.2vw rgba(0, 0, 0, 0.35));
    opacity: 1;
}

@keyframes group19Pulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0.6vw 0.6vw 1.8vw rgba(0, 0, 0, 0.25));
        opacity: 0.85;
    }
    100% { 
        transform: scale(1.02);
        filter: drop-shadow(0.7vw 0.7vw 2vw rgba(0, 0, 0, 0.3));
        opacity: 0.95;
    }
}

/* 功能标签层 */
.function-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* 功能标签基础样式 */
.function-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.83vw;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(0.69vw);
    border-radius: 2.08vw;
    padding: 0.56vh 1.39vw;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.28vh 1.04vw rgba(0, 0, 0, 0.2);
    border: 0.14vw solid rgba(255, 255, 255, 0.5);
    min-width: 8.33vw;
    font-size: 0.97vw;
    font-weight: 600;
}

.function-label:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 0.42vh 1.39vw rgba(0, 0, 0, 0.3);
}

/* 标签图标 */
.label-icon {
    width: 2.22vw;
    height: 2.22vw;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.11vw;
    font-weight: bold;
    flex-shrink: 0;
}

.chinese-char {
    color: #8B4513;
    font-size: 1.25vw;
    font-weight: bold;
}

.icon-symbol {
    font-size: 1.25vw;
}

/* 标签文字 */
.label-text {
    line-height: 1.2;
    text-align: left;
    color: #333;
}

/* AI占卜代理 - 左上位置，灰色 */
.ai-divination {
    top: 18vh;
    left: 15vw;
    background: rgba(180, 180, 180, 0.9);
    color: #fff;
}

.ai-divination .label-text {
    color: #fff;
}

/* Books - 右上位置，红色 */
.books-label {
    top: 20vh;
    right: 15vw;
    background: rgba(220, 50, 50, 0.9);
    color: #fff;
}

.books-label .label-text {
    color: #fff;
}

.books-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Blog - 右中位置，橙色 */
.blog-label {
    top: 55vh;
    right: 5vw;
    background: rgba(255, 140, 0, 0.9);
    color: #fff;
}

.blog-label .label-text {
    color: #fff;
}

.blog-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Courses - 左下位置，绿色 */
.courses-label {
    bottom: 35vh;
    left: 8vw;
    background: rgba(34, 139, 34, 0.9);
    color: #fff;
}

.courses-label .label-text {
    color: #fff;
}

.courses-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Memberships - 左下角，蓝色 */
.memberships-label {
    bottom: -5vh;
    left: 12vw;
    background: rgba(30, 144, 255, 0.9);
    color: #fff;
}

.memberships-label .label-text {
    color: #fff;
}

.memberships-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Online Divination - 右下位置，金色 */
.online-divination-label {
    bottom: 25vh;
    right: 12vw;
    background: rgba(218, 165, 32, 0.9);
    color: #fff;
    padding: 0.69vh 1.67vw;
}

.online-divination-label .label-text {
    color: #fff;
}

.divination-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .function-label {
        font-size: 1.17vw;
        padding: 0.59vh 1.56vw;
        min-width: 9.77vw;
    }
    
    .label-icon {
        width: 2.73vw;
        height: 2.73vw;
    }
    
    .icon-symbol {
        font-size: 1.37vw;
    }
    
    .chinese-char {
        font-size: 1.56vw;
    }
}

@media (max-width: 768px) {
    .top-left-decoration {
        top: 3vh;
        left: 18vw;
    }
    
    .left-tree-decoration {
        bottom: 52vh;
        left: 1vw;
    }
    
    .tree-glow-element {
        width: 120vw;
        max-width: 960px;
    }
    
    .group16-label {
        width: 16.7vw;
        max-width: 240px;
        left: 11vw;
        top: 30vh;
    }
    
    .bottom-right-decoration {
        bottom: 8vh;
        right: 13vw;
    }
    
    .sun-decoration {
        top: 8vh;
        right: 15vw;
    }
    
    .crane-decoration {
        top: 5vh;
        left: 5vw;
    }
    
    .coins-decoration {
        bottom: 8vh;
        right: 5vw;
    }
    
    /* Group 18和19的移动端调整 */
    .group18-decoration {
        top: 38vh;
        right: 5vw;
    }
    
    .group18-element {
        width: 16.7vw;
        max-width: 240px;
    }
    
    .group19-decoration {
        bottom: 10vh;
        left: 50%;
    }
    
    .group19-element {
        width: 16.7vw;
        max-width: 240px;
    }
    
    .function-label {
        font-size: 1.43vw;
        padding: 0.65vh 1.56vw;
        min-width: 10.42vw;
        gap: 1.04vw;
    }
    
    .label-icon {
        width: 3.13vw;
        height: 3.13vw;
    }
    
    .icon-symbol {
        font-size: 1.56vw;
    }
    
    .chinese-char {
        font-size: 1.82vw;
    }
    
    /* 移动端位置调整 */
    .ai-divination {
        top: 15vh;
        left: 8vw;
    }
    
    .books-label {
        top: 12vh;
        right: 8vw;
    }
    
    .blog-label {
        top: 50vh;
        right: 3vw;
    }
    
    .courses-label {
        bottom: 30vh;
        left: 5vw;
    }
    
    .memberships-label {
        bottom: -10vh;
        left: 8vw;
    }
    
    .online-divination-label {
        bottom: 20vh;
        right: 8vw;
    }
}

@media (max-width: 480px) {
    .top-left-decoration {
        top: 2vh;
        left: 17vw;
    }
    
    .left-tree-decoration {
        bottom: 47vh;
        left: 1vw;
    }
    
    .tree-glow-element {
        width: 144vw;
        max-width: 768px;
    }
    
    .group16-label {
        width: 16.7vw;
        max-width: 240px;
        left: 10.5vw;
        top: 25vh;
    }
    
    .bottom-right-decoration {
        bottom: 6vh;
        right: 12vw;
    }
    
    /* Group 18和19的小屏幕调整 */
    .group18-decoration {
        top: 35vh;
        right: 3vw;
    }
    
    .group18-element {
        width: 16.7vw;
        max-width: 240px;
    }
    
    .group19-decoration {
        bottom: 7vh;
        left: 50%;
    }
    
    .group19-element {
        width: 16.7vw;
        max-width: 240px;
    }
    
    .function-label {
        font-size: 2.08vw;
        padding: 0.83vh 2.08vw;
        min-width: 14.58vw;
        gap: 1.25vw;
    }
    
    .label-icon {
        width: 4.17vw;
        height: 4.17vw;
    }
    
    .icon-symbol {
        font-size: 2.08vw;
    }
    
    .chinese-char {
        font-size: 2.5vw;
    }
    
    /* 超小屏幕位置调整 */
    .ai-divination {
        top: 12vh;
        left: 5vw;
    }
    
    .books-label {
        top: 8vh;
        right: 5vw;
    }
    
    .blog-label {
        top: 45vh;
        right: 2vw;
    }
    
    .courses-label {
        bottom: 25vh;
        left: 3vw;
    }
    
    .memberships-label {
        bottom: -13vh;
        left: 5vw;
    }
    
    .online-divination-label {
        bottom: 15vh;
        right: 5vw;
        padding: 0.42vh 0.83vw;
    }
}

/* 加载动画效果 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ui-homepage-container.loaded .function-label {
    animation: fadeInScale 0.6s ease-out forwards;
}

.ui-homepage-container.loaded .function-label:nth-child(1) { animation-delay: 0.1s; }
.ui-homepage-container.loaded .function-label:nth-child(2) { animation-delay: 0.2s; }
.ui-homepage-container.loaded .function-label:nth-child(3) { animation-delay: 0.3s; }
.ui-homepage-container.loaded .function-label:nth-child(4) { animation-delay: 0.4s; }
.ui-homepage-container.loaded .function-label:nth-child(5) { animation-delay: 0.5s; }
.ui-homepage-container.loaded .function-label:nth-child(6) { animation-delay: 0.6s; }

/* 特殊动效 */
@keyframes coinSparkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.coin-element {
    animation: coinSparkle 2s ease-in-out infinite;
}

.coin-2 {
    animation-delay: 0.7s;
}

.coin-3 {
    animation-delay: 1.4s;
} 