@charset "UTF-8";

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

@font-face {
    font-family: 'Source Han Sans';
    src: url('fonts/SourceHanSans.ttc') format('truetype-collection');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Source Han Sans', sans-serif;
    margin: 0;
}

body, html {
    background: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    all: unset;
} /* 去除所有链接的自带格式 */

a:active, a:focus {
    transform: scale(0.95);
    transition: all 0.6s ease;
}

p {
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word; /* 使单词之间有间隔，让对齐效果更自然 */
    color: #434343;
    font-size: 0.8rem;
    font-weight: 300;
}

@media (max-width: 900px) {
    p {
        font-size: 0.85rem;
    }
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    width: 100%;
    background-color:white;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 6vw;
}

@media (max-width: 750px) {
    header {
        height: 70px;
    }
}
  
.logo {
    width: 80px;
    cursor: pointer;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 70px;
    height: 70px;
    margin-right: 5vw;
    position: relative;
}

.logo2 {
    width: 25px;
    height: auto;
}

.logo3 {
    width: 9px;
    position: absolute;
    right: 17.5px;
    top: 38.5px;
    transition: right 0.8s ease;
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    transform: translateX(100%); /* 自身移动 */
    transition: transform 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 19;
    /* 背景线性渐变：从透明到白色 */
    background: linear-gradient(to right, rgba(255,255,255,0), white); 
    /* 磨砂玻璃效果 */
    backdrop-filter: blur(20px);             /* 毛玻璃模糊 */
    -webkit-backdrop-filter: blur(20px);     /* 兼容 Safari */
}

@media (min-width: 900px) {
    
    nav {
        width: 500px;
    }

}

nav.active {
    transform: translateX(0);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 100px 0 0;
    text-align: right;
}

nav li {
    margin: 30px 0;
    font-size: 1.5rem;
    color: #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 750px) {
    nav li {
        color: #000;
        font-size: 2rem;
    }
}

nav li:hover {
    font-size: 3rem;
    color: #000;
}

nav li:active {
    transform: scale(0.95);
}

nav li sup {
    font-size: 0.6rem;
}

.menu-open .logo3 {
    right: 30px;
    transition: right 0.8s ease;
}

/* index主页 */
main {
    width: 100%;
    position: relative;
}

.hero {
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    transition: height 1s ease;
}

.hero > div {
    display: flex;
    width: 100vw;
    height: 60vh;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    overflow: hidden;
    position: relative;
}

.hero video {
    width: 105%; /* 稍微放大，防止1px黑边 */
    height: 105%;
}

#play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 10px 20px;
    background: #F7F7F7;
    font-weight: 350;
    border-radius: 50px;
    display: none;
    justify-content: center;
    align-items: center;
}

#play-button:active {
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.carousel-container {
    width: 100%;
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 30px 0;
}

.carousel {
    width: 100%;
    height: 100%;
    perspective: 4000px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 2rem 0;
}

.carousel:hover {
    cursor: pointer;
}

@media (max-width: 900px) {

    .carousel-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .carousel {
        min-height: 60vh;
    }

}

.carousel-item {
    position: absolute;
    height: 100%;
    transition: transform 0.8s ease, opacity 0.8s ease;
    will-change: transform, opacity;
    filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 10px rgba(255,255,255,0.4))
    drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

/* 呼吸动画 */
@keyframes carousel-breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

#carousel {
    animation: carousel-breathing 8s ease-in-out infinite;
}

.carousel-controls {
    display: flex;
    gap: 1rem;   
    align-items: center;
    z-index: 10;
    flex-direction: row;   /* 强制水平方向 */
}

/* 所有按钮统一圆形外观 */
.pagination {
    width: 1.2rem;
    height: 1.2rem;
    background: #555;
    font-size: 0.5rem;
    color: #b5b5b6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 默认隐藏左右箭头，仅保留页码 */
.prev, .next {
    opacity: 0;
    pointer-events: none;
}

/* 左右 hover 时显示对应按钮 */
#carouselContainer.hover-left .prev {
    opacity: 1;
    pointer-events: auto;
}

#carouselContainer.hover-right .next {
    opacity: 1;
    pointer-events: auto;
}

.button1 {
    margin: 1.5rem;
    padding: 10px 20px 10px 20px;
    background: #F7F7F7;
    font-weight: 350;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.button1:hover {
    background: linear-gradient(135deg, #7A81FF 20%, #FF968D 35%, #FFD479 50%, #00AB8E 65%, #0096FF 80%);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    box-shadow: 0 0 20px 2px #a2a2a2;
    cursor: pointer;
    color: white;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.button1:hover img {
    content: url("images/SVG/right-arrow-white.svg");
}

/* Work界面 */
.work-title {
    font-weight: 350; 
    margin-top: 180px; 
    text-align: center;
}

@media (max-width: 900px) {
    .work-title {
        margin-top: 140px; 
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 50px;
    padding: 60px 10% 90px 10%;
}

.project-item {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    cursor: pointer;
}

.project-item, .story-item {
    /* 初始状态 */
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.22, 1, 0.36, 1);
    animation: none;
}

/* 鼠标悬停时启用动画 */
.project-item:hover, .story-item:hover {
    animation: carousel-breathing 4s ease-in-out infinite;
    transition: none; /* 移除 transition，避免和 animation 冲突 */
}

@media (max-width: 750px) {
        .project-item, .story-item {
        animation: carousel-breathing 4s ease-in-out infinite;
    }
}

.project-item > img, .story-item img {
    background: #F7F7F7;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.project-item h3, .story-item h3 {
    margin: 1rem 1rem 0 1rem;
    font-weight: 500;
}

.project-item p, .story-item p {
    margin: 0.6rem 1rem 0 1rem;
    font-weight: 300;
    font-size: 0.8rem;
}

.project-categories {
    margin: 0.8rem 1rem 1.3rem 1rem;
    display: flex;
    flex-wrap: wrap; /* 如果太多自动换行 */
    gap: 0.4rem;
}

.project-categories div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
    padding: 0.4rem 0.6rem;
    background: #F7F7F7;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.6s ease, box-shadow 0.6s ease; /* 只延迟这些 */
}

.project-categories div:hover {
    color: white;
}

.project-categories div:hover img {
    content: url("images/SVG/right-arrow-white.svg");
}

/* stories界面 */
.story-item {
    background: white;
    border-radius: 80px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    cursor: pointer;
    position: relative;
}

.story-item img {
    filter: brightness(80%);
}

.story-title {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    text-align: center;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

/* 设计类别介绍界面 */
.category-container {
    display: flex;
    flex-wrap: nowrap; /* ✅ 强制不换行 */
    justify-content: center; 
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 50px;
    height: 220px;
    overflow-x: auto; /* ✅ 允许横向滚动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* ✅ 防止自动换行 */
    position: relative;
}

.work-type {
    flex: 0 0 auto; /* ✅ 禁止缩放，也不自动拉伸 */
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.5rem;
    font-weight: 500;
    border-radius: 50%;
    margin-top: 10px;
    transition: all 1s ease;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 900px) {

    .category-container {
        justify-content: flex-start; /* 左对齐，便于滑动 */
        gap: 0.5rem;
    }

}

.work-type.active {
    width: 150px;
    height: 150px;
    font-size: 1rem;
    animation: carousel-breathing 8s ease-in-out infinite;
}

.separate-line {
    position: absolute;
    top: 170px;
    left: 50%;   /* 居中 */
    transform: translateX(-50%);  /* 精准居中 */
    width: 80%;
    height: 0.5px;
    pointer-events: none;
    z-index: -1;
    background: #b5b5b6;
}

@media (max-width: 900px) {

    .separate-line {
        width: 100%;
    }

}

.category-container div.pre-design, .project-categories div.pre-design:hover {
    background: linear-gradient(135deg, #7A81FF, #D783FF);
    box-shadow: 0 0 20px 2px #7A81FF; /* 模糊半径，第四个值是扩散范围*/
}

.category-container div.logo-design, .project-categories div.logo-design:hover {
    background: linear-gradient(135deg, #F2B13D, #FF968D);
    box-shadow: 0 0 20px 2px #F27200;
}

.category-container div.ui-design, .project-categories div.ui-design:hover {
    background: linear-gradient(135deg, #0096FF, #FFD479);
    box-shadow: 0 0 20px 2px #7EB0C2;
}

.category-container div.product-design, .project-categories div.product-design:hover {
    background: linear-gradient(135deg, #F8F0DA, #EC9897);
    box-shadow: 0 0 20px 2px #f3d6d6;
}

.category-container div.vi-design, .project-categories div.vi-design:hover {
    background: linear-gradient(135deg, #7A81FF, #00AB8E);
    box-shadow: 0 0 20px 2px #7EB0C2;
}

.category-container div.service-design, .project-categories div.service-design:hover {
    background: linear-gradient(135deg, #EC9897, #96C2E3);
    box-shadow: 0 0 20px 2px #B6B3C5;
}

.category-container div.brand-design, .project-categories div.brand-design:hover {
    background: linear-gradient(135deg, #424242, #F3C756);
    box-shadow: 0 0 20px 2px #927E4B;
}

.category-container div:hover {
    animation: carousel-breathing 2s ease-in-out infinite;
}

.category-section {
    display: none;
    padding: 2rem 1rem;
    margin: 0 auto;
    transition: all 1s ease;
    height: calc(100vh - 310px);
}

@media (max-width: 900px) {

    .category-section {
        height: auto;
    }

}

.category-section.active {
    display: flex;
    object-fit: contain;
    transition: all 1s ease;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* 隐藏滚动条 */
.category-container {
    overflow-x: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE 10+ */
}

.category-container::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
}

.category-video {
    display: flex;
    width: fit-content;
    height: fit-content;
    justify-content: center;
    align-items: center;
    transition: height 1s ease;
    margin-top: 2rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.category-video > div {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    overflow: hidden;
    position: relative; /* 让 replay-button 可以绝对定位 */
}

.category-video video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

@media (max-width: 900px) {
    .category-section.active {
        justify-content: flex-start;
    }

}

.replay-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    color: #555;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.6rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.play-button {
    font-size: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 10px 20px;
    background: #F7F7F7;
    font-weight: 350;
    border-radius: 50px;
    display: none;
    justify-content: center;
    align-items: center;
}

.play-button:active {
    transform: scale(0.95);
    transition: all 0.6s ease;
}

/* 具体项目格式 */
.project-content {
    margin: 90px auto 0 auto; 
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    margin: 2rem 0 1rem 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; 
    border-bottom: #b5b5b6 solid 0.5px;
}

.project-header h1 {
    max-width: 600px;
    text-align: center;
    font-size: calc(1.2rem + 1.8vw);
}

.project-content p {
    max-width: 500px;
    width: 100%;
    text-align: left;
    margin: 1rem 0;
    display: block;
    text-align: justify;
}

@media (max-width: 900px) {
    .project-content p {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

.project-pic-1, .project-pic-2 {
    margin: calc(2rem + 1vw) 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    height: fit-content;
    border-radius: 22px;
    overflow: hidden;
    transform: translateZ(0); /* 强制为容器创建一个独立合成层，Safari 更早初始化硬件加速遮罩，防止跳帧闪边 */
    will-change: transform; 
    background: white;
}

.project-pic-1 img {
    display: block; /* 图片默认是 inline，有些浏览器会给 img 下面多一条空隙（基线对齐产生的），让容器看起来比图片“多出一点高度” */
    max-width: 900px;
    max-height: 600px;
    width: 100%;
    height: auto;
}

.project-pic-2 img {
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
}

.project-pic-3 {
    width: 30%;
    margin: calc(2rem + 1vw) 0;
    object-fit: contain;
}

.project-pic-3 img {
    width: 100%;
}

.project-pic-4 {
    padding: calc(2rem + 1vw) 0;
    max-width: 900px;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-items: center;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.project-pic-4 > div {
    width: 45%;
    height: auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    border-radius: 22px;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.project-pic-4 img {
    display: block;
    width: 100%;
}

.project-video {
    margin: calc(2rem + 1vw) 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    height: fit-content;
    border-radius: 22px;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    position: relative;
}

.project-video video {
    display: block;
    max-width: 900px;
    max-height: 600px;
    width: 100%;
    height: auto;
}

.button-bg {
    margin-top: 2rem;
    background: #F7F7F7;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button2 {
    width: fit-content;
    padding: 10px 20px 10px 20px;
    background: white;
    font-weight: 350;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease;
}

.button2:hover {
    background: linear-gradient(135deg, #7A81FF 20%, #FF968D 35%, #FFD479 50%, #00AB8E 65%, #0096FF 80%);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    box-shadow: 0 0 20px 2px #a2a2a2;
    cursor: pointer;
    color: white;
}

.button2:hover img {
    content: url("images/SVG/right-arrow-white.svg");
}

/* 固废填埋 */
.pdf-container, .work-container {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-container canvas, .work-container img {
    display: block;
    margin: 2rem auto;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: white;
    width: 100%;
}

.work-wide-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.work-wide-container img {
    display: block;
    margin: 2rem auto;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: white;
    width: 100%;
}

.work-wide-container img:last-child {
    width: 50%;
    transform: translateX(-50%);
}

/* Contact界面 */
.about-container {
    max-width: 600px;
    width: 100%;
    margin: 160px auto 90px auto;
    background: #F7F7F7;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 900px) {
    .about-container {
        margin-top: 100px; 
    }
}

.about-logo {
    width: 180px;
    margin: 1rem 0;
}

.about-container h3 {
    margin: 0 0 1rem 0;
}

.about-container p {
    margin: 1rem 0;
    display: block;
    width: 100%;
}

.about-pic {
    max-width: 600px;
    margin: 1rem 0 0 0;
}

.about-pic img {
    width: 100%;
}

.about-title {
    font-weight: 350; 
    margin-top: 80px; 
    text-align: center;
}

.contact {
    max-width: 600px;
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: white;
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
}

.contact img {
    max-width: 260px;
    width: 100%;
}


/* 拼码pinma界面 */
.project-subtitle {
    margin-top: 3rem;
    padding-top: 3rem;
    display: block;
    max-width: 900px;
    width: 100%;
    text-align: center;
    border-top: #b5b5b6 solid 0.5px;
}

.project-video-immersive {
    display: flex;
    width: fit-content;
    height: auto;
    justify-content: center;
    align-items: center;
    transition: height 1s ease;
    overflow: hidden;
}

.project-video-immersive > div {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    overflow: hidden;
    flex-direction: column;
}

.project-video-immersive video {
    width: 101%; /* 稍微放大，防止1px黑边 */
    height: 101%;
}

.project-video-immersive .project-replay-button {
    margin: 1rem;
    background: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    color: #555;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.6rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.button4 {
    margin: 1rem;
    padding: 10px 20px 10px 20px;
    background: #F7F7F7;
    font-weight: 350;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.button4:hover {
    background: #EBEBEB;
    cursor: pointer;
}

/* website-update-strategy */
.pdf-container-2 {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-container-2 canvas {
    display: block;
    margin: 2rem auto;
    border-radius: 22px;
    background-color: white;
    width: 100%;
}

/* sustainability-insights */
.separate-line-2 {
    background: #b5b5b6;
    height: 0.5px;
    max-width: 900px;
    width: 100%;
    margin: 2rem 0;;
}

h3 {
    margin: 1rem 0;
}

/* molinsights */
.button3 {
    margin: 1rem;
    padding: 10px 20px 10px 20px;
    background: white;
    color: #555;
    width: 110px;
    font-weight: 350;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease;
    border: none;
    position: absolute;
    bottom: 12px;
    right: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    z-index: 10;
}

@media (max-width: 900px) {
    .button3 {
        width: fit-content;
        bottom: -65px;
        right: -1rem;
        box-shadow: 0 0 12px rgba(0,0,0,0.08);
    }
}

@media (min-width: 900px) {
    .button3:hover {
        background: #EBEBEB;
        cursor: pointer;
    }

    .button3:active {
        transform: scale(0.95);
        background: #EBEBEB;
        transition: all 0.6s ease;
    }
}

button.touched {
    transform: scale(0.95);
    background: #EBEBEB;
    transition: all 0.6s ease;
}

.page-indicator {
    background: #F7F7F7;
    width: 30px;
    height: 30px;
    font-weight: 350;
    font-size: 8px;
    color: gray;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease;
    border: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}


/* weichuang */
.project-video .project-replay-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    color: #555;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.6rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* sel */
.p-list {
    margin-left: 2em; 
    display: list-item;
}

