.site-header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease-out;
    z-index: 999;
    margin: 0 auto;
}

.site-header.sticky {
    transform: translateY(-100%);
}

button {
    border: none;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 140px 0 auto;
    justify-content: space-between;
}

.container .video-wrapper {
    width: 100%;
}

.reel {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    aspect-ratio: 16 / 9;
    z-index: 1;
    overflow: hidden;
    transition: width 0.4s ease;
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: background-size 0.4s ease, background-position 0.4s ease, opacity 1s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.left-title {
    display: flex;
    align-items: start;
    width: 20%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.left-title h2 {
    font-size: 20px;
    font-weight: bold;
    margin-right: 20px;
    letter-spacing: 3px;
    margin-top: 0;
    border-bottom: none;
}

.right-detail {
    flex: 1;
    width: auto;
    min-width: 0;
}

.company-title a {
    text-decoration: underline;
}

.company-list {
    display: flex;
}

.company-list dt {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
}

.company-list dd {
    flex: 1;
    margin: 0;
}

.right-detail dl {
    list-style: none;
    padding: 0;
}

.right-detail dt {
    width: 25%;
    flex-shrink: 0;
    font-weight: bold;
}

.right-detail dl {
    margin-bottom: 10px;
}

.right-detail dl:last-child {
    margin-bottom: 0;
}

.auto-gallery {
    width: 100vw;
    height: 33vh;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
    left: 0;
    right: 0;
    z-index: 1;
    margin-top: 120px;
}

.gallery-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: scroll-left 90s linear infinite;
    gap: 15px;
}

.gallery-item {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
}

/* staff section */
.staff-grid {
    margin-bottom: 1.5rem;

}

.staff-name {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.staff-name p {
    display: inline-block;
    margin-bottom: 0;
}

.staff-name a {
    color: inherit;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
    display: inline-block;
}

.staff-name img {
    margin-left: .3rem;
    width: 10px;
    height: auto;
}


/* 鼠标悬停时的效果 */
.staff-name a:hover {
    opacity: 0.6;
}

.staff-title {
    font-size: .8rem;
    margin-bottom: 5px;
    font-weight: 800;
}


/* client section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px 20px;
    margin-top: -30px;
    margin-left: -30px;
}

.clients-item img {
    max-height: 100%;
    height: auto;
    width: 100%;
    display: block;
}
/* 
.clients-item ::after{
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(105, 105, 105);
    mix-blend-mode: color;
    pointer-events: none;
} */

.auto-gallery:hover .gallery-track {
    animation-play-state: paused;
}


.hidden-client {
    display: none;
}

.hidden-client.show-client {
    display: block !important;
}

.clients-item {
    transition: all 0.3s ease;
}

.button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
    padding-right: 10px;
}

.btn-more {
    cursor: pointer;
    font-size: 14px;
}

/* awards section */
.auto-gallery-awards {
    height: 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
}

.auto-gallery-awards .gallery-track {
    display: flex;
    width: max-content;
    animation: scroll-left 120s linear infinite;
    gap: 50px;
}


.gallery-item-awards {
    position: relative;
    background: #fff;
    /* 必须有背景色 */
}

.gallery-item-awards img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.8;
    filter: grayscale(100%);
    object-position: center;
}

.gallery-item-awards::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(105, 105, 105);
    mix-blend-mode: color;
    pointer-events: none;
}

.awards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    table-layout: fixed;
    margin-right: 0;
}

.award-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    /* 增加中间的留白感 */
    align-items: baseline;
}

.awards-td:nth-child(1) {
    width: 15%;
}

.award-name {
    flex: 0 0 60%;
    /* 调整奖项名称在 flex 容器中的占比 */
}

.award-title {
    flex: 1;
    /* 项目名称占据剩余空间 */
    text-align: left;
    color: rgb(105, 105, 105);
    opacity: 0.8;
}

.award-title a {
    color: #696969;
    transition: color 0.3s;
}

.award-title a:hover {
    color: #000;
}

.awards-table thead {
    color: #ccc;
    font-weight: 600;
}

#thumb-preview {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    z-index: 999;
}

#thumb-preview.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.awards-table th,
.awards-table td {
    padding: 20px 10px;
    text-align: left;
    vertical-align: top;
}

#thumb-preview img {
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.awards-td a {
    text-decoration: underline;

}

.hidden-award {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.hidden-award.open {
    max-height: 1500px;
}


/* 自动滚动关键帧 */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    .reel {
        aspect-ratio: 4/5;
    }

    .container {
        flex-direction: column;
        margin-top: 60px;
    }

    .left-title {
        width: 100%;
        margin-bottom: 0px;
        border-bottom: none;
        margin-top: 0;
    }

    .left-title h2 {
        margin-bottom: 0;
        font-size: 18px;
    }

    .auto-gallery {
        margin-top: 60px;
        height: 20vh;
    }

    .gallery-track {
        gap: 5px;
    }

    .award-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .staff-name {
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid {
        margin: 0;
        margin-left: -20px;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    #thumb-preview {
        display: none !important;
    }

    .awards-table {
        margin-top: 0;
    }

    .awards-table th,
    .awards-table td {
        padding: 10px 5px;
    }

}