@font-face {
    font-family: police99;
    src: url("medias/Faune-TextRegular.otf")
}

@font-face {
    font-family: police98;
    src: url("medias/Faune-TextBold.otf")
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: police99;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* ============================================================================
   桌面版本样式 (Desktop Version)
   ============================================================================ */

/* 白色背景区域 - 初始时显示，滚动时向上移走 */
.white-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* 标题文字 - 始终固定在顶部 */
.title-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1002;
    cursor: pointer;
}

.title-text h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.toggle-icon {
    font-size: 1rem;
    color: #888;
    transition: transform 0.6s ease;
}

/* 创作介绍容器 */
.description-wrapper {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.description {
    background-color: #ffffff;
    padding: 50px 80px;
    cursor: pointer;
}

.description-content {
    font-size: 1.8rem;
    line-height: 1.2;
    color: #000000;
    font-style: normal;
    text-align: left;
}

/* 主内容区域 */
.main-content {
    margin-top: 80px;
    transition: margin-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图片容器 */
.image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.fullscreen-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 可点击的图片 */
.clickable-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    cursor: pointer;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 项目内容容器 */
.project-container {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.project-content {
    background-color: #ffffff;
    padding: 0px 150px 0 150px;
}

.project-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
    font-style: normal;
    text-align: left;
    margin-bottom: 40px;
    margin-left: 100px;
}

/* 项目文本 - 可折叠展开 */
.project-text-02-container {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 100px;
}

.project-text-02 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
    font-style: normal;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-text-02.collapsed {
    max-height: 100px;
    cursor: pointer;
}

.project-text-02.expanded {
    max-height: 600px;
    cursor: pointer;
}

.project-text-02.collapsed:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z' fill='%23000'/%3E%3C/svg%3E") 12 12, pointer;
}

.project-text-02.expanded:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M19 13H5v-2h14v2z' fill='%23000'/%3E%3C/svg%3E") 12 12, pointer;
}

.text-preview {
    display: inline;
}

.text-preview-mobile {
    display: none;
}

.text-expanded-content {
    display: none;
}

.project-text-02.expanded .text-preview {
    display: none;
}

.project-text-02.expanded .text-preview-mobile {
    display: none;
}

.project-text-02.expanded .text-expanded-content {
    display: block;
}

.ellipsis {
    display: inline;
}

.project-text-02.expanded .ellipsis {
    display: none;
}

.quote-author {
    display: block;
    text-align: right;
    font-style: normal;
    margin-top: 10px;
    margin-bottom: 10px;
}

.project-images {
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.project-image-container {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    cursor: pointer;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.image-caption {
    font-family: 'Times New Roman', Times, serif;
    margin-top: 3px;
    margin-bottom: 4vw;
    font-size: 0.9rem;
    color: #000000;
    font-style: normal;
    line-height: 1.2;
    padding: 0 10px 15px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.project-caption {
    font-size: 0.9rem;
    color: #000000;
    font-style: normal;
    line-height: 1.5;
    padding: 0 10px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: #000000;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-top: 20px;
    background-color: #ffffff;
}

/* ============================================================================
   移動版本样式 (Mobile Version)
   ============================================================================ */

.mobile-main-content {
    display: none;
}

.mobile-white-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.mobile-title-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 1002;
    cursor: pointer;
}

.mobile-title-text h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000000;
    margin: 0;
}

/* 修改：添加滚动功能到移动版本创作介绍 */
.mobile-description-wrapper {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

/* 修改：添加滚动容器 */
.mobile-description-scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    position: relative;
}

.mobile-description {
    background-color: #ffffff;
    padding: 30px 20px;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-description-content {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #000000;
    font-style: normal;
    text-align: left;
}

/* 移动版本滚动条样式 */
.mobile-description-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.mobile-description-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-description-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.mobile-description-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 新增：防止内容穿透滚动 */
.mobile-description-scroll-container.scrolling-active {
    overscroll-behavior: contain;
}

.mobile-main-container {
    margin-top: 60px;
    transition: margin-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mobile-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mobile-clickable-image {
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-image-caption {
    font-family: 'Times New Roman', Times, serif;
    margin-top: 3px;
    margin-bottom: 4vw;
    font-size: 0.85rem;
    color: #000000;
    font-style: normal;
    line-height: 1.2;
    padding: 0 10px 15px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.mobile-project-container {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.mobile-project-content {
    background-color: #ffffff;
    padding: 20px 15px;
}

.mobile-project-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
    font-style: normal;
    text-align: left;
    margin-bottom: 30px;
}

.mobile-project-images {
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.mobile-project-image-container {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mobile-project-image {
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.mobile-project-text-02-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.mobile-project-text-02 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
    font-style: normal;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-project-text-02.collapsed {
    max-height: 85px;
    cursor: pointer;
}

.mobile-project-text-02.expanded {
    max-height: 600px;
    cursor: pointer;
}

.mobile-text-preview {
    display: inline;
}

.mobile-text-expanded-content {
    display: none;
}

.mobile-project-text-02.expanded .mobile-text-preview {
    display: none;
}

.mobile-project-text-02.expanded .mobile-text-expanded-content {
    display: block;
}

.mobile-ellipsis {
    display: inline;
}

.mobile-project-text-02.expanded .mobile-ellipsis {
    display: none;
}

.mobile-project-caption {
    font-size: 0.85rem;
    color: #000000;
    font-style: normal;
    line-height: 1.5;
    padding: 0 10px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    width: 100%;
}

.mobile-video-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mobile-video {
    width: 100%;
    object-fit: cover;
    display: block;
}

.mobile-footer {
    text-align: center;
    padding: 20px 0;
    color: #000000;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-top: 20px;
    background-color: #ffffff;
}

/* 滚动指示器 - 当内容可滚动时显示 */
.mobile-scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1003;
}

.mobile-scroll-indicator.visible {
    opacity: 0.6;
}

.mobile-scroll-indicator svg {
    width: 100%;
    height: 100%;
    fill: #000000;
}

/* ============================================================================
   響應式切換
   ============================================================================ */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 小螢幕手機專用調整 */
@media (max-width: 375px) {
    .mobile-description {
        padding: 25px 15px;
    }
    
    .mobile-description-content {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .mobile-white-background {
        height: 55px;
    }
    
    .mobile-title-text {
        padding: 15px 15px;
    }
    
    .mobile-title-text h1 {
        font-size: 1.3rem;
    }
    
    .mobile-description-wrapper {
        top: 55px;
    }
    
    .mobile-main-container {
        margin-top: 55px;
    }
    
    /* 小屏幕上降低滚动容器高度 */
    .mobile-description-scroll-container {
        max-height: 60vh;
    }
}

@media (max-width: 320px) {
    .mobile-description-content {
        font-size: 1.1rem;
        line-height: 1.35;
    }
    
    .mobile-white-background {
        height: 50px;
    }
    
    .mobile-title-text {
        padding: 12px 15px;
    }
    
    .mobile-title-text h1 {
        font-size: 1.2rem;
    }
    
    .mobile-description-wrapper {
        top: 50px;
    }
    
    .mobile-main-container {
        margin-top: 50px;
    }
    
    /* 更小屏幕上进一步降低滚动容器高度 */
    .mobile-description-scroll-container {
        max-height: 55vh;
    }
}

/* 平板和手機設備 - 切換版本 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-main-content {
        display: block;
    }
    
    /* 中等屏幕上设置滚动容器高度 */
    .mobile-description-scroll-container {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .mobile-title-text h1 {
        font-size: 1.3rem;
    }
    
    .mobile-description {
        padding: 20px 15px;
    }
    
    .mobile-description-content {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .mobile-project-text-02.collapsed {
        max-height: 85px;
    }
    
    /* 小屏幕上设置滚动容器高度 */
    .mobile-description-scroll-container {
        max-height: 65vh;
    }
}