/* 字体引入 */
@font-face {
    font-family: 'FZChaoCuHei-M10S';
    src: url('../fonts/FZChaoCuHei-M10S.ttf') format('truetype');
    font-weight: 2000;
    font-style: normal;
    /* src: url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.eot");
    src: url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/ed0956c4232dfc92e89ea817d183e203.svg#FZChaoCuHei-M10S")format("svg"); */
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: url('../../assets/point.png') 10 10, auto;
}



a, button, .nav-link, .submenu-item, [role="button"] {
    cursor: url('../../assets/point.png') 10 10, pointer;
}

body, canvas, #physics-container {
    cursor: url('../../assets/point.png') 10 10, auto;
}

video, .main-video, .grid-video, .bg-video, .cover-video, .hover-video, .end-video {
    cursor: url('../../assets/point.png') 10 10, auto !important;
}

.video-wrapper, .video-grid-item, .project-video-container {
    cursor: url('../../assets/point.png') 10 10, auto !important;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #D4D4D4;
    color: #000000;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 首页固定不滚动 */
body.home-page {
    overflow: hidden;
}

.home-page #home {
    background-color: #D4D4D4;
}

/* 隐藏滚动条 */
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* 导航栏样式 */
.navbar {
    padding: 1rem 2rem;
    background-color: transparent !important;
    box-shadow: none;
    z-index: 100;
    width: 100%;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.navbar-collapse {
    flex-grow: 0;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-text {
    font-family: 'FZChaoCuHei-M10S', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 2rem;
    color: #000000 !important;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #0066ff !important;
}

.nav-link.active {
    color: #0066ff !important;
}

.nav-link:focus,
.nav-link:focus-visible,
.nav-link:hover:focus,
.nav-link:hover:focus-visible {
    color: #0066ff !important;
    outline: none;
}

.navbar-tooth {
    width: 32px;
    height: 32px;
    margin-left: 2rem;
}

.navbar-tooth-container {
    display: flex;
    align-items: center;
}

/* 首页样式 */
#home {
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.home-gif {
    width: 100vw;
    height: 100vh;
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#physics-container {
    width: 100vw;
    height: 100%;
    background-color: #D4D4D4;
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* 手机端导航 */
.mobile-nav {
    display: none;
}

/* 首页底部样式 - 默认不显示，只在 iPad 和移动端显示 */
.home-footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem 0;
}

.home-footer-text {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 1rem;
}

.home-footer-logo img {
    width: 24px;
    height: 24px;
}

/* 响应式设计：iPad 屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
    
    .navbar-collapse {
        flex-grow: 1;
        justify-content: flex-end !important;
    }
    
    .navbar-brand {
        display: flex;
    }
    
    .brand-text {
        font-size: 0.7rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        margin: 0 0.8rem;
    }
    
    .navbar-tooth {
        width: 30px;
        height: auto;
    }
    
    /* 平板屏幕时，隐藏手机端导航 */
    .mobile-nav {
        display: none;
    }
    
    /* 平板屏幕时，将屏幕分为三块 */
    .home-gif {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;
    }
    
    /* 第二块：动画区域，占据屏幕的 1/2 高度，位置更靠上 */
    #physics-container {
        width: 80%;
        height: 50%;
        max-width: none;
        margin: 0 auto;
        position: relative;
        background-color: #D4D4D4;
    }
    
    /* 第三块：底部文字和 logo */
    .home-footer {
        display: flex;
        bottom: 2rem;
        position: relative;
        margin-top: auto;
    }
    
    .home-footer-text {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .home-footer-logo img {
        width: 28px;
        height: 28px;
    }
}

/* 响应式设计：手机屏幕 */
@media (max-width: 768px) {
    /* 手机端布局 */
    .navbar {
        display: none;
    }

    .home-gif {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;
    }

    #physics-container {
        width: 100%;
        height: 30%;
        margin: 0;
    }

    /* 手机端导航 */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
    }

    .mobile-nav-link {
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 1px;
        margin: 1rem 0;
        color: #000000;
        text-decoration: none;
        text-align: center;
    }

    .mobile-nav-link:hover {
        color: #666666;
    }

    /* 手机端底部 */
    .home-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        position: relative;
    }

    .home-footer-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        order: 2;
    }

    .home-footer-logo {
        order: 1;
        margin-bottom: 1rem;
    }

    .home-footer-logo img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1rem;
    }
}

/* MOVING IMAGE 页面样式 */
.submenu-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 90;
    background-color: transparent;
}

.submenu {
    display: flex;
    list-style: none;
    padding: 1rem 2rem;
    margin: 0;
    justify-content: flex-start;
    gap: 8rem;
}

.submenu-item {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.submenu-item.active {
    color: #0066ff;
}

.submenu-item:hover {
    color: #0066ff;
}

.submenu-item:focus,
.submenu-item:focus-visible,
.submenu-item:hover:focus,
.submenu-item:hover:focus-visible {
    color: #0066ff !important;
    outline: none;
}

.moving-image-main {
    margin-top: 8.125rem;
    min-height: calc(100vh - 8.125rem);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* PROJECT 区域样式 */
.project-list {
    padding: 0;
    margin-top: 8.125rem;
    perspective: 1000px;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-item {
    margin-bottom: 0.9375rem;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    background-color: #d4d4d4;
    padding-bottom: 0.9375rem;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}

.project-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.project-video-container:hover .project-cover,
.project-video-container.play .project-cover {
    opacity: 0;
}

.moving-image-main .project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    height: 50px;
    /* padding: 15px 17px 20px 0; */
}

.project-year {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 123%;
    text-align: right;
    letter-spacing: -0.32em;
    color: #000000;
    /* text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); */
    padding: 0 10px 0 0;
}

.moving-image-main .project-title {
    font-family: 'FZChaoCuHei-M10S', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 123%;
    color: #000000;
    /* text-shadow: 0px 10px 10px rgba(0, 0, 0, 0.25); */
    /* -webkit-text-stroke: 2px #000000; */
    padding: 0 0 0 0;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .submenu-container {
        top: 60px;
    }
    
    .submenu {
        gap: 1.5rem;
        padding: 1rem 1rem;
        justify-content: flex-start;
    }
    
    .submenu-item {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .moving-image-main {
        margin-top: 110px;
    }
    
    .project-video-container {
        aspect-ratio: 9 / 16;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn::after {
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 14px solid #fff;
    }
    
    .project-list {
        padding: 1.5rem 1rem;
    }
    
    .project-item {
        margin-bottom: 3rem;
    }
    
    .moving-image-main .project-info {
        padding: 0;
    }
    
    .moving-image-main .project-year {
        font-size: 32px;
        letter-spacing: -0.25em;
    }
    
    .moving-image-main .project-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .submenu {
        gap: 3rem;
        padding: 1.5rem 2rem;
        justify-content: flex-start;
    }
    
    .project-list {
        padding: 2rem 2rem;
    }
    
    .project-video-container {
        aspect-ratio: 16 / 10;
    }
    
    .moving-image-main .project-year {
        font-size: 48px;
        letter-spacing: -0.3em;
    }
    
    .moving-image-main .project-title {
        font-size: 2.5rem;
        /* -webkit-text-stroke: 2px #000000; */
    }
}
