* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: "阿里妈妈方圆体 VF Regular";src: url("//at.alicdn.com/wf/webfont/E8MsvTlikPPO/OsYFGSgNvVuN.woff2") format("woff2"),
  url("//at.alicdn.com/wf/webfont/E8MsvTlikPPO/0PqcH2nLCwRo.woff") format("woff");font-variation-settings: "BEVL" 80, "wght" 600;font-display: swap;
}

.webfont {
  font-family: "阿里妈妈方圆体 VF Regular";font-variation-settings: "BEVL" 80, "wght" 600; /* Chrome 140 以下版本需要 */}

  
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(35.06% 51.14% at 41.45% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, radial-gradient(31.99% 87.27% at 62.07% 100%, rgba(232, 201, 255, 0.2) 0%, rgba(205, 223, 255, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, radial-gradient(14.14% 38.57% at 38.63% 0%, rgba(255, 226, 217, 0.4) 0%, rgba(205, 223, 255, 0.4) 54.33%, rgba(232, 201, 255, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, radial-gradient(24.96% 68.09% at 58.75% 10%, rgba(255, 226, 217, 0.4) 0%, rgba(205, 223, 255, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, #F6F7F8;
    backdrop-filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    width: min(100%, 320px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.page-loader-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.page-loader-lottie {
    width: 160px;
    height: 40px;
}

.page-loader-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.72);
    letter-spacing: 0.04em;
}

.page-loader-bar {
    width: 180px;
    height: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-loader-bar-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    /* background: linear-gradient(90deg, #111827, #6b7280); */
    background: linear-gradient(90deg, #FFCFC0 0%, #A7C6FF 56.73%, #DCAAFF 97.12%);
    transition: width 0.15s ease-out;
}

body {
    background-color: #f6f7f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "阿里妈妈方圆体 VF Regular", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: url('../assets/cursor.svg') 6 6, auto;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f6f7f8;
    overflow: hidden;
}

.page-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.is-profile-view .page-track {
    transform: translateX(-50%);
}

.page-panel {
    position: relative;
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

.projects-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 160px;
    overflow: hidden;
}

.profile-card {
    width: min(100%, 854px);
    display: flex;
    align-items: center;
    gap: 41px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    z-index: 2;
}

.profile-card-image {
    width: 417px;
    height: 411px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    border-radius: 0;
    perspective: 900px;
}

.profile-card-image-layer {
    position: absolute;
}

.profile-card-image-layer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.profile-card-image-layer-back {
    left: 82px;
    top: 27px;
    width: 301px;
    height: 262px;
}

.profile-card-image-layer-main {
    left: 159px;
    top: 1px;
    width: 258px;
    height: 411px;
}

.profile-card-image-layer-top {
    left: 26px;
    top: 13px;
    width: 112px;
    height: 95.5px;
}

.profile-card-image-layer-bottom {
    left: 16px;
    top: 260px;
    width: 160px;
    height: 139px;
}


.profile-card-content {
    width: 476px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
    color: rgba(0, 0, 0, 0.8);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-section-about {
    width: 100%;
    gap: 9px;
}

.profile-section-work {
    width: 296px;
    gap: 11px;
}

.profile-section-social {
    width: 144px;
    gap: 12px;
}

.profile-section-title {
    width: 100%;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
}

.profile-section-text,
.profile-work-list p {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

.profile-work-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.profile-social-list {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    display: block;
}

.social-icon-base {
    opacity: 1;
}

.social-icon-hover {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.social-link:hover .social-icon-hover {
    opacity: 1;
}

.physics-playground {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.physics-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: url('../assets/cursor.svg') 4 4, grab;
    pointer-events: auto;
    touch-action: none;
}

.physics-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-section {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 180px;
    z-index: 2;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.title-lottie {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.projects-container {
    position: relative;
    display: flex;
    gap: 64px;
}

.project-card {
    position: relative;
    width: 188px;
    height: 150px;
    cursor: pointer;
    opacity: 0;
    margin-top: 60px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease-in-out;
}

.page:not(.is-loading) .project-card {
    opacity: 1;
    margin-top: 0;
}


.project-card-tilt {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../assets/project_bg.png') center / cover no-repeat;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.03));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease-in-out;
}

.projects-container.is-hovering .project-card {
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.projects-container.is-hovering .project-card .project-card-tilt {
    filter: blur(12px) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.03));
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease-in-out;
}

.projects-container.is-hovering .project-card.is-active {
    opacity: 1;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.projects-container.is-hovering .project-card.is-active .project-card-tilt {
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.03));
}

.page.is-project-hovering .title-section,
.page.is-project-hovering .nav-button {
    filter: blur(16px);
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.page.is-project-hovering .project-card {
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.page.is-project-hovering .project-card .project-card-tilt {
    filter: blur(16px) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.03));
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease-in-out;
}

.page.is-project-hovering .project-card.is-active {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.page.is-project-hovering .project-card.is-active .project-card-tilt {
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.03));
}

.project-card.is-tilting .project-card-tilt {
    transition: transform 0.08s linear, filter 0.3s ease-in-out;
}

.project-float {
    position: absolute;
    width: 146px;
    height: 316px;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.4,0.36,0.42,1.25);
    pointer-events: none;
    z-index: 3;
}

.project-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.project-float-1 {
    top: -286px;
    left: -236px;
    transform: translate(-28px, 30px) rotate(-24deg) scale(0);
}

.project-float-2 {
    top: -400px;
    right: -120px;
    transform: translate(24px, 22px) rotate(16deg) scale(0);
}

.project-float-3 {
    bottom: -340px;
    left: -164px;
    transform: translate(-22px, -30px) rotate(-11deg) scale(0);
}

.project-float-4 {
    bottom: -252px;
    right: -228px;
    transform: translate(26px, -20px) rotate(26deg) scale(0);
}

.project-card.is-active .project-float {
    opacity: 1;
}

.project-card.is-active .project-float-1 {
    transform: translate(0, 0) rotate(8.3deg) scale(1);
}

.project-card.is-active .project-float-2 {
    transform: translate(0, 0) rotate(-9deg) scale(1);
}

.project-card.is-active .project-float-3 {
    transform: translate(0, 0) rotate(-7.53deg) scale(1);
}

.project-card.is-active .project-float-4 {
    transform: translate(0, 0) rotate(5.11deg) scale(1);
}

.dual-icon-project.left-faded .project-float-1,
.dual-icon-project.left-faded .project-float-3,
.dual-icon-project.right-faded .project-float-2,
.dual-icon-project.right-faded .project-float-4 {
    opacity: 0.1;
}

.personal-project-card .project-float-1 {
    top: -286px;
    left: -536px;
    width: 545px;
    height: 316px;
}

.personal-project-card .project-float-2 {
    top: -140px;
    right: -300px;
    width: 250px;
    height: 250px;
}

.personal-project-card .project-float-3 {
    width: 250px;
    height: 250px;
}

.project-card:hover {
    transform: scale(1.05);
}

.icon-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box {
    position: relative;
    width: 64px;
    height: 64px;
    top: 0;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: top 0.2s ease-in-out;
    box-shadow: inset 0px -2px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 2px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.2));
}

.icon-box:hover{
    top: -16px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0px -2px 2px 0px rgba(0, 0, 0, 0.05), inset 0px 1px 2px 0px rgba(255, 255, 255, 0.4);
}

.icon-tag {
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-tag::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
}

.icon-tag.is-visible {
    animation: tag-pop-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tag-pop-up {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
    35% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-25px);
    }
}

.pet-icon-1 {
    top: 28px;
    left: 50%;
    transform: translateX(-86%);
    width: 75.908px;
    height: 75.908px;
}

.pet-icon-1 .icon-box {
    transform: rotate(-8deg);
}

.pet-icon-2 {
    top: 28px;
    left: 50%;
    transform: translateX(-10%);
    width: 72.284px;
    height: 72.284px;
}

.pet-icon-2 .icon-box {
    transform: rotate(12deg);
}

.desktop-icon {
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 72.284px;
    height: 72.284px;
}

.desktop-icon .icon-box {
    transform: rotate(-8deg);
}

.clean-icon-1 {
    top: 28px;
    left: 50%;
    transform: translateX(-86%);
    width: 75.908px;
    height: 75.908px;
}

.clean-icon-1 .icon-box {
    transform: rotate(-8deg);
}

.clean-icon-2 {
    top: 28px;
    left: 50%;
    transform: translateX(-10%);
    width: 72.284px;
    height: 72.284px;
}

.clean-icon-2 .icon-box {
    transform: rotate(12deg);
}

.personal-icon {
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 72.284px;
    height: 72.284px;
}

.personal-icon .icon-box {
    transform: rotate(8deg);
}

.info-bg {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 188px;
    height: 68px;
    background-image: url('../assets/project_mask.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    /* backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    mask-image: url('../assets/project_mask.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../assets/project_mask.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    z-index: 1;
    overflow: hidden; */
}

.project-name {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: black;
    white-space: nowrap;
    z-index: 2;
}

.project-platform {
    position: absolute;
    top: 112px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 2;
}

.nav-button {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 198px;
    height: 56px;
    background-color: #171421;
    border-radius: 65px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 30px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}

.nav-button:active {
    transform: translateX(-50%) scale(0.94);
}

.nav-icon-wrapper {
    width: 56px;
    height: 56px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    width: 24px;
    height: 24px;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.nav-icon-wrapper.is-active .nav-icon {
    opacity: 1;
}

.nav-indicator {
    position: absolute;
    bottom: 8px;
    width: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    background: linear-gradient(137.27deg, #FFE2D9 14.02%, #CDDFFF 59.12%, #E8C9FF 91.22%), #52E2C0;

}

@media (max-width: 1024px) {
    .page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .page-track {
        min-height: auto;
    }

    .page-panel {
        width: 100vw;
        min-height: 100vh;
    }

    .projects-panel {
        padding: 600px 0 160px 0;
        overflow-y: scroll;
    }

    .profile-panel {
        padding: 600px 0 320px 0;
        overflow-y: scroll;
    }

    .projects-container {
        flex-direction: column;
        gap: 28px;
    }

    .projects-container .project-card{
        width: 240px;
        height: 191px;
    }

    .profile-card {
        width: 100%;
        max-width: 854px;
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .profile-card-image {
        width: min(100%, 417px);
    }

    .profile-card-content {
        padding: 0 32px;
        width: 100%;
        max-width: 476px;
    }
}

.portal-bullet {
    position: fixed;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #22c55e, #16a34a, #15803d);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 40px rgba(22, 163, 74, 0.5);
}

.portal-bullet-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    z-index: 9998;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portal-display {
    position: fixed;
    width: 90px;
    height: 90px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    border-radius: 12px;
    overflow: hidden;
}

.portal-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}