/* 头部导航 - 二次元卡哇伊风格 */
@keyframes spin {
    from { transform: rotate(-360deg); }
    to { transform: rotate(0deg); }
}

@keyframes scaleUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 157, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 157, 0.6); }
}

/* 变量 */
:root {
    --candy-pink: #ff6b9d;
    --candy-purple: #c084fc;
    --candy-blue: #60a5fa;
    --candy-cyan: #22d3ee;
}

/* 视口大于800 */
@media screen and (min-width: 800px) {
    .page_header_box {
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
        border-bottom: 2px solid rgba(255, 107, 157, 0.1);

        .page_header {
            width: calc(100% - 40px);
            margin: 0 auto;
            overflow: hidden;
            max-width: 1200px;
            display: flex;
            align-items: center;

            .header_logo {
                height: 42px;
                text-align: center;
                margin-top: 8px;
                transition: transform 0.3s ease;
                border-radius: 10px;

                &:hover {
                    transform: scale(1.05);
                }
            }

            .mobnav_icon {
                display: none;
            }

            .left {
                display: flex;
                justify-content: right;
                align-items: center;
                width: 100%;

                .page_header_nav {
                    display: flex;
                    align-items: center;
                    gap: 5px;

                    a {
                        color: #555;
                        font-size: 14px;
                        padding: 8px 18px;
                        line-height: 65px;
                        font-weight: 600;
                        border-radius: 25px;
                        transition: all 0.3s ease;

                        &:hover {
                            color: white;
                            background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                            box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
                        }
                    }
                }

                .page_header_console {
                    display: flex;
                    margin-left: 25px;
                    align-items: center;
                    gap: 12px;

                    .search {
                        background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
                        height: 38px;
                        margin-top: 12px;
                        border-radius: 20px;
                        cursor: pointer;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border: 2px solid rgba(255, 107, 157, 0.2);
                        transition: all 0.3s ease;

                        &:hover {
                            border-color: #ff6b9d;
                            transform: scale(1.05);
                            box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
                        }

                        img {
                            width: 18px;
                            margin: 0 15px;
                        }
                    }

                    .console_but {
                        background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                        height: 38px;
                        margin-top: 12px;
                        border-radius: 25px;
                        padding: 0 20px;
                        line-height: 38px;
                        font-size: 14px;
                        color: #fff;
                        display: flex;
                        align-items: center;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
                        font-weight: 600;

                        img {
                            width: 22px;
                            margin-right: 8px;
                            border-radius: 50%;
                        }

                        &:hover {
                            transform: translateY(-3px);
                            box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
                        }
                    }
                }
            }
        }
    }

    /* 登录弹窗 */
    .login_box_page {
        width: 100%;
        height: 100vh;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        display: none;
        
        &.login_box_pageshow {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .login_box {
            width: 380px;
            background: white;
            border-radius: 25px;
            margin: 0 auto;
            margin-top: calc(50vh - 280px);
            box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
            padding: 30px;
            position: relative;
            animation: scaleUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;

            .close_box {
                position: absolute;
                top: -18px;
                right: -18px;
                cursor: pointer;
                background: white;
                border-radius: 50%;
                width: 45px;
                height: 45px;
                box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;

                img {
                    width: 22px;
                    height: 22px;
                }

                &:hover {
                    transform: scale(1.1) rotate(90deg);
                    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
                }
            }

            .login_title {
                font-size: 24px;
                text-align: center;
                margin-bottom: 10px;
                font-weight: 800;
                background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .login_item {
                display: none;
                opacity: 0;
                transition: all 0.4s ease;

                &.active {
                    display: block;
                    opacity: 1;
                    animation: slideUp 0.4s ease forwards;
                }

                .login_title {
                    font-size: 20px;
                    margin-bottom: 20px;
                }

                .login_form {
                    .login_form_item {
                        border: 2px solid #f0f0f0;
                        margin-bottom: 15px;
                        display: flex;
                        align-items: center;
                        border-radius: 15px;
                        position: relative;
                        transition: all 0.3s ease;
                        background: #f8fafc;

                        &:focus-within {
                            border-color: #ff6b9d;
                            background: white;
                            box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
                        }

                        .icon {
                            width: 22px;
                            height: 22px;
                            position: absolute;
                            left: 15px;
                            color: #ff6b9d;
                        }

                        input {
                            width: 100%;
                            height: 50px;
                            border-radius: 13px;
                            padding: 0 15px 0 50px;
                            font-size: 15px;
                            border: none;
                            background: transparent;

                            &:focus {
                                outline: none;
                                border: none !important;
                            }

                            &::placeholder {
                                color: #b8b8b8;
                                font-size: 14px;
                            }
                        }

                        .x_button {
                            width: auto;
                            margin-top: 0;
                            padding: 10px 18px;
                            border-radius: 20px;
                            background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                            color: white;
                            font-weight: 600;
                            font-size: 13px;
                            white-space: nowrap;
                            box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);

                            &:hover {
                                transform: scale(1.05);
                            }
                        }
                    }

                    .x_button.login_but {
                        width: 100%;
                        height: 50px;
                        border-radius: 25px;
                        font-size: 16px;
                        font-weight: 700;
                        margin-top: 20px;
                        background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #60a5fa 100%);
                        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
                        border: none;
                        color: white;
                        cursor: pointer;
                        transition: all 0.3s ease;

                        &:hover {
                            transform: translateY(-3px);
                            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
                        }
                    }

                    .con_boxs {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        margin-top: 15px;

                        a {
                            color: #ff6b9d;
                            font-size: 14px;
                            font-weight: 600;
                            transition: all 0.3s ease;

                            &:hover {
                                color: #c084fc;
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* 视口小于800 */
@media screen and (max-width: 800px) {
    .page_header_box {
        width: 100%;
        height: 60px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        overflow: hidden;
        z-index: 999;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
        border-bottom: 2px solid rgba(255, 107, 157, 0.1);

        .page_header {
            width: calc(100% - 30px);
            margin: 0 auto;
            overflow: hidden;
            max-width: 1200px;
            display: flex;
            align-items: center;

            .header_logo {
                height: 35px;
                text-align: center;
                margin-top: 12px;
                transition: transform 0.3s ease;
                border-radius: 8px;

                &:hover {
                    transform: scale(1.05);
                }
            }

            .mobnav_icon {
                overflow: hidden;
                width: 40px;
                cursor: pointer;
                padding: 10px;
                border-radius: 10px;
                transition: all 0.3s ease;

                &:hover {
                    background: rgba(255, 107, 157, 0.1);
                }

                img {
                    width: 28px;
                    height: 28px;
                    display: block;
                }
            }

            .left {
                display: flex;
                justify-content: right;
                align-items: center;
                width: 100%;

                .page_header_nav {
                    position: fixed;
                    top: -100vh;
                    left: 0;
                    width: 100%;
                    height: calc(100% - 60px);
                    background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
                    z-index: 99;
                    display: block;
                    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                    opacity: 0;
                    padding-top: 20px;
                    border-top: 2px solid rgba(255, 107, 157, 0.2);

                    a {
                        color: #555;
                        font-size: 16px;
                        padding: 15px 25px;
                        line-height: 60px;
                        font-weight: 600;
                        display: block;
                        width: calc(100% - 50px);
                        margin: 0 auto;
                        border-bottom: 1px solid rgba(255, 107, 157, 0.1);
                        transition: all 0.3s ease;
                        border-radius: 15px;

                        &:hover {
                            color: white;
                            background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                            transform: translateX(10px);
                        }
                    }
                }

                .show {
                    top: 60px;
                    opacity: 1;
                }

                .page_header_console {
                    display: flex;
                    margin-left: 15px;
                    align-items: center;
                    gap: 10px;

                    .search {
                        background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
                        height: 35px;
                        margin-top: 12px;
                        border-radius: 18px;
                        cursor: pointer;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border: 2px solid rgba(255, 107, 157, 0.2);
                        transition: all 0.3s ease;
                        width: 35px;

                        &:hover {
                            border-color: #ff6b9d;
                            transform: scale(1.05);
                        }

                        img {
                            width: 16px;
                        }
                    }

                    .console_but {
                        background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                        height: 35px;
                        margin-top: 12px;
                        border-radius: 20px;
                        padding: 0 15px;
                        line-height: 35px;
                        font-size: 13px;
                        color: #fff;
                        display: flex;
                        align-items: center;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
                        font-weight: 600;

                        img {
                            width: 20px;
                            margin-right: 6px;
                            border-radius: 50%;
                        }

                        .con_user_text {
                            max-width: 80px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }

                        &:hover {
                            transform: translateY(-2px);
                            box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
                        }
                    }
                }
            }
        }
    }

    .login_box_page {
        width: 100%;
        height: 100vh;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        display: none;
        
        &.login_box_pageshow {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .login_box {
            width: calc(100% - 60px);
            max-width: 380px;
            background: white;
            border-radius: 25px;
            margin: 80px auto 0;
            box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
            padding: 25px;
            position: relative;
            animation: scaleUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;

            .close_box {
                position: absolute;
                top: -15px;
                right: -15px;
                cursor: pointer;
                background: white;
                border-radius: 50%;
                width: 42px;
                height: 42px;
                box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;

                img {
                    width: 20px;
                    height: 20px;
                }

                &:hover {
                    transform: scale(1.1) rotate(90deg);
                    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
                }
            }

            .login_title {
                font-size: 22px;
                text-align: center;
                margin-bottom: 10px;
                font-weight: 800;
                background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .login_item {
                display: none;
                opacity: 0;
                transition: all 0.4s ease;

                &.active {
                    display: block;
                    opacity: 1;
                    animation: slideUp 0.4s ease forwards;
                }

                .login_form {
                    .login_form_item {
                        border: 2px solid #f0f0f0;
                        margin-bottom: 12px;
                        display: flex;
                        align-items: center;
                        border-radius: 13px;
                        position: relative;
                        transition: all 0.3s ease;
                        background: #f8fafc;

                        &:focus-within {
                            border-color: #ff6b9d;
                            background: white;
                            box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
                        }

                        .icon {
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            left: 13px;
                            color: #ff6b9d;
                        }

                        input {
                            width: 100%;
                            height: 45px;
                            border-radius: 11px;
                            padding: 0 12px 0 45px;
                            font-size: 14px;
                            border: none;
                            background: transparent;

                            &:focus {
                                outline: none;
                            }

                            &::placeholder {
                                color: #b8b8b8;
                                font-size: 13px;
                            }
                        }

                        .x_button {
                            width: auto;
                            margin-top: 0;
                            padding: 8px 14px;
                            border-radius: 18px;
                            background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
                            color: white;
                            font-weight: 600;
                            font-size: 12px;
                            white-space: nowrap;
                            box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);

                            &:hover {
                                transform: scale(1.05);
                            }
                        }
                    }

                    .x_button.login_but {
                        width: 100%;
                        height: 45px;
                        border-radius: 22px;
                        font-size: 15px;
                        font-weight: 700;
                        margin-top: 18px;
                        background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #60a5fa 100%);
                        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
                        border: none;
                        color: white;
                        cursor: pointer;
                        transition: all 0.3s ease;

                        &:hover {
                            transform: translateY(-2px);
                            box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
                        }
                    }

                    .con_boxs {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        margin-top: 12px;

                        a {
                            color: #ff6b9d;
                            font-size: 13px;
                            font-weight: 600;

                            &:hover {
                                color: #c084fc;
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }
    }
}

.con_user_avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.login_box_pageshow {
    display: block;
}

.page_footer_box {
    width: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;

    /* 装饰元素 */
    &::before {
        content: '✿';
        position: absolute;
        top: 30px;
        left: 5%;
        font-size: 100px;
        opacity: 0.05;
        color: #ff6b9d;
    }

    &::after {
        content: '♪';
        position: absolute;
        bottom: 50px;
        right: 5%;
        font-size: 80px;
        opacity: 0.05;
        color: #c084fc;
    }

    .page_footer {
        width: calc(100% - 40px);
        max-width: 1200px;
        margin: 50px auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        position: relative;
        z-index: 1;

        .footer_item {
            .footer_logo {
                height: 45px;
                margin-bottom: 15px;
                border-radius: 10px;
            }

            .footer_desc {
                font-size: 14px;
                color: #e0e0e0;
                line-height: 1.8;
            }

            .title {
                font-size: 16px;
                color: #fff;
                font-weight: 700;
                margin-bottom: 15px;
                position: relative;
                padding-left: 15px;

                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 4px;
                    height: 18px;
                    background: linear-gradient(180deg, #ff6b9d 0%, #c084fc 100%);
                    border-radius: 2px;
                }
            }

            a {
                display: block;
                color: #b0b0b0;
                font-size: 13px;
                margin-top: 10px;
                transition: all 0.3s ease;
                padding: 5px 0;

                &:hover {
                    color: #ff6b9d;
                    transform: translateX(5px);
                }
            }

            .qr_box {
                display: flex;
                margin-top: 15px;
                gap: 15px;

                .qr_img {
                    width: 100px;
                    height: 100px;
                    padding: 8px;
                    background-color: #fff;
                    border-radius: 12px;
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                }
            }
        }
    }

    .hr {
        width: calc(100% - 40px);
        max-width: 1200px;
        margin: 10px auto;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.3), transparent);
        height: 1px;
    }

    .footer_copyright {
        width: calc(100% - 40px);
        max-width: 1200px;
        margin: 10px auto;
        padding-bottom: 40px;

        .copyright {
            color: #b0b0b0;
            font-size: 13px;
            text-align: center;
            display: flex;
            justify-content: center;
            margin-bottom: 10px;

            a {
                line-height: 15px;
                display: flex;
                margin-left: 15px;

                img {
                    width: 16px;
                    height: 16px;
                }

                span {
                    margin-left: 8px;
                    color: #b0b0b0;
                }
            }
        }
    }
}

.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-loaded {
    opacity: 1;
}

/* 初始状态：往下偏移 + 透明 */
.slidescroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 动画触发时：恢复原位 + 显示 */
.slidescroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slidescrollVue {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slidescrollVue.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}