/*=========================================================
Hero
=========================================================*/
:root {
    /* --hero-height: 100vh; */
    --content-height: 30vh;
    /* --gallery-height: 800px; 70vh; */
    /* --card-width: 420px;
    --card-height: 280px; */
    --card-radius: 20px;
    --card-gap: 24px;
    --title-color: #1d1d1f;
    --text-color: #666;
    --background: #fafafa;/* #fafafa; */
}
body {
	font-family:"Helvetica Neue","Roboto", "Noto Sans TC", "Helvetica", "-apple-system,BlinkMacSystemFont", "Microsoft YaHei UI",sans-serif;
}

.display-m{
    display: none;
}

.display-pc{
    display: block;
}
@media(max-width:768px) {
    .display-m{
        display: block;
    }

    .display-pc{
        display: none;
    }
}

.hero-section {
    position: relative;
    height: var(--hero-height);
    /* background: #fff; */
    background: linear-gradient(180deg, #fdfbfb 0%, #ebedee 100%);
    /* overflow: hidden; */
    /* 噪點(一點也不好看) */
    /*background:
     linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),  */
    /* 98% 的白色遮罩 */
  /* url('images/noise.png') #fafafa; */
}
/*=========================================================
Hero Content
=========================================================*/
.hero-content {
    height: var(--content-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    /* text-align: center; */
    margin-top: 20px; /* 100px;*/
    z-index: 20;
    position: relative;
    animation:
        heroFade 1.2s cubic-bezier(.2, .8, .2, 1);
}
@keyframes heroFade {
    0% {
        opacity: 0;
        transform:
            translateY(40px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
.hero-tag {
    display: inline-block;
    letter-spacing: .25em;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 24px;
}
.hero-title-carousel {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(40px, 3vw, 96px);
    line-height: 1.1;
    font-weight: 800 !important;
    color: var(--primary-green);
    margin-bottom: 28px;
}
.hero-title-subtitle {
    font-size: clamp(20px, 2.5vw, 20px);
    line-height: 1.5;
    font-weight: 6800 !important;
    color: var(--text-color);
    margin-bottom: 28px;
}
.hero-description {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    /* margin-bottom: 36px; */
}
.hero-button .btn {
    padding: 16px 42px;
    border-radius: 999px;
    font-weight: 600;
}
/*=========================================================
Gallery
=========================================================*/
.hero-gallery {
    position: relative;
    height: var(--gallery-height);
    overflow: hidden;
    /*   animation:
galleryFade
1.5s
.3s
both; */
}
.hero-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background:
        linear-gradient(to bottom,
            rgba(250, 250, 250, 1) 0%,
            rgba(250, 250, 250, 0) 8%,
            rgba(250, 250, 250, 0) 92%,
            rgba(250, 250, 250, 1) 100%);
}
/*=========================================================
Fade Mask
=========================================================*/
.hero-gallery::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 50;
    background:
        linear-gradient(to right,
            #fafafa,
            rgba(250, 250, 250, 0));
}
.hero-gallery::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 50;
    background:
        linear-gradient(to left,
            #fafafa,
            rgba(250, 250, 250, 0));
}
/*=========================================================
Marquee
=========================================================*/
.marquee {
    height: 30%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.marquee-track {
    display: flex;
    gap: var(--card-gap);
    width: max-content;
}
/*=========================================================
Work Card
=========================================================*/
.work-card {
    position: relative;
    width: 320px; /* 370px; */
    height: 190px; /* 220px; */
    border-radius: 0px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    background: #fff;
    aspect-ratio: 4/3;
    transition:
        transform .45s,
        box-shadow .45s,
        filter .45s;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, .08);
        /* border: 1px solid #fff; */
}
.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.work-card.featured {
    /* width: 100%;
    height: 100%; */
    /* width: 520px;
    height: 320px; */
}
/*=========================================================
Overlay
=========================================================*/
.work-info {
    position: absolute;
    font-size: 18px;
    left: 24px;
    bottom: 22px;
    color: #fff;
    border: 1px solid #fff;
    z-index: 5;
    transition: .35s;
    /*   Glass */
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .12);
    padding: 8px 16px;
    border-radius: 14px;
}
.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background:
        linear-gradient(to top,
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, 0)); */
}
.work-category {
    display: block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .8;
    /* margin-bottom: 6px; */
}
.work-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
/*=========================================================
Hover
=========================================================*/
.work-card:hover {
    transform:
        translateY(-10px) scale(1.05);
}
.hero-gallery:hover .work-card {
    transform: scale(.95);
    opacity: .65;
}
.hero-gallery:hover .work-card:hover {
    transform: scale(1.04);
    opacity: 1;
    z-index: 10;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .18);
}
.hero-gallery:hover .work-card:hover img {
    transform: scale(1.08);
}
/*=========================================================
Responsive
=========================================================*/
@media(max-width:1200px) {
    :root {
        --card-width: 360px;
        --card-height: 240px;
    }
}
@media(max-width:992px) {
    .hero-title {
        font-size: 56px;
    }
    .hero-description {
        font-size: 18px;
    }
    :root {
        --card-width: 300px;
        --card-height: 200px;
    }
}
@media(max-width:768px) {
    .hero-content {
        height: 34vh;
        padding: 0 16px;
    }
    .hero-gallery {
        height: 66vh;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-description {
        font-size: 16px;
    }
    :root {
        --card-width: 240px;
        --card-height: 170px;
    }
    .hero-gallery::before,
    .hero-gallery::after {
        width: 80px;
    }
}