:root {
    --bg-color: #ebe9e1;
    --text-color: #2c2c2c;
    --accent-color: #c4563c;
    --font-main: 'Noto Sans TC', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    margin: auto;
}

h1, h2, h3 {
    font-weight: normal;
    letter-spacing: 4px;
}

h1 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1.8;
}

.vertical-text {
    writing-mode: vertical-rl;
}

.color-block {
    display: block;
    width: fit-content;
    height: fit-content;
    background-color: #fff;
    padding: 8px;
    line-height: 1;
}
.nobreak {
    white-space: nowrap;
}
.br-small {
    display: none;
}
@media (max-width: 500px) {
    .br-small {
        display: inline;
    }
}

img.promo {
    width: 90px;
    height: 314px;
    margin: 0;
    margin-right: 3rem;
}
img.promo.mobile {
    display: none;
}

sup {
    font-size: 0.8rem;
    vertical-align: super;
}

@media (max-width: 1023px) {
    img.promo {
        display: none;
        width: 80px;
        height: 280px;
        margin-right: 2rem;
    }
    img.promo.mobile {
        display: block;
    }
}
@media (max-width: 500px) {
    html {
        font-size: 12px;
    }
}


header.hero {
    position: relative;
    width: 100%;
    background: #cde0e8; /* 藍天色底 */
    overflow: hidden;
}

header.hero .logo {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 360px;
}

header.hero .badge {
    position: absolute;
    top: 8%;
    left: 40%;
    width: 20%;
}
header.hero .badge img {
    width: 100%;
}

header.hero .content {
    position: absolute;
    top: 32%;
    right: 65%;
    z-index: 10;
}
header.hero .content h1.sub-title {
    margin: 0 8px 0 70px;
}

header.hero .bg {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-image: url('../images/hero-car-v2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
@media (max-width: 1400px) {
    header.hero .badge {
        width: 26%;
        left: 43%;
        top: 19%;
    }
}
@media (max-width: 1023px) {
    header.hero {
        background-color: #fff;
    }
    header.hero .logo {
        left: 20px;
        top: 20px;
        width: 240px;
    }
    header.hero .badge {
        width: 40%;
        left: 30%;
        top: 7%;
    }
    header.hero .content {
        top: 38%;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    header.hero .bg {
        background-image: url('../images/hero-car-v2-vertical.jpg');
    }
}
@media (max-width: 500px) {
    header.hero .badge {
        width: 50%;
        left: 25%;
        top: 11%;
    }
    header.hero .logo {
        width: 240px;
    }
    header.hero .bg {
        background-size: contain;
        background-position: center bottom;
    }
}


section.intro {
    max-width: 80%;
    margin: 0 auto;
    padding: 4rem 0;
    background-image: url('../images/taiwan.png');
    background-size: 55%;
    background-position: left bottom;
    background-repeat: no-repeat;
}

section.intro .container {
    display: flex;
    gap: 40px;
    align-items: center;
}

section.intro .text {
    flex: 1;
}

section.intro .text h1 {
    margin-bottom: 1em;
}

.promo-date {
    margin-top: 2.5rem;
    color: var(--accent-color);
}

section.intro .images {
    flex: 1;
    display: flex;
}
section.intro .images img {
    width: 25%;
    height: auto;
}
#intro-image-1 {
    margin-top: 25%;
}
#intro-image-2 {
    margin-top: -4%;
}
@media (max-width: 768px) {
    section.intro {
        max-width: unset;
        background-size: 100%;
        background-position: center 10%;
    }
    section.intro .container {
        flex-direction: column;
        margin-left: 2rem;
        margin-right: 2rem;
    }
    section.intro .images {
        width: 90%;
        margin-top: 10%;
    }
    section.intro .images img {
        width: 25%;
    }
    .is-horizontal.is-ltr .f-button.is-arrow.is-prev {
        left: 10px;
    }
    .is-horizontal.is-ltr .f-button.is-arrow.is-next {
        right: 10px;
    }
}


.video-section {
    background-color: #000;
}

.video-container {
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


section.journey .header.content {
    margin: 4rem 10% 10rem 10%
}
section.journey .header.content h1 {
    margin-bottom: 2rem;
}
section.journey article {
    position: relative;
}
section.journey .content {
    margin: 0 10%;
}
section.journey article .images {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50vh;
    margin: 13rem 0 1rem 0;
    padding-left: 10%;
    overflow: hidden;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* iOS */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
section.journey article .images::-webkit-scrollbar {
    display: none;
}
.image-slider-container {
    width: 50%;
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.image-slider-container,
.slider-track,
.slider-thumb {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.image-slider-container.reverse {
    flex-direction: row-reverse;
}
.slider-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-color);
    min-width: 40px;
    text-align: center;
}
.slider-track {
    flex: 1;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}
.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s;
    touch-action: none;
}
.slider-thumb:hover,
.slider-thumb.active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slider-thumb:active {
    cursor: grabbing;
}
section.journey article .images video {
    background-color: #000;
}
section.journey article.reverse .images {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 10%;
}
section.journey .images video {
    cursor: pointer;
}
section.journey .images img {
    max-width: unset;
    width: auto;
    height: 100%;
}
section.journey .color-block {
    padding: 1.2rem 0.8rem;
}
section.journey .titles {
    position: absolute;
    top: -9rem;
    left: 10%;
    width: fit-content;
}
section.journey article.reverse .titles {
}
section.journey .titles h2,
section.journey .titles h3 {
    font-size: 1.8rem;
}
section.journey .titles h2 {
    margin-bottom: 0.5rem;
    white-space: nowrap;
}
section.journey .titles h2 span {
    display: block;
    font-size: 1.1rem;
    margin-left: 2px;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    section.journey article .images {
        height: 25vh;
    }
}

section.videos {
    margin: 6rem 0;
}
section.videos h1 {
    margin-left: 5%;
    margin-bottom: 2rem;
}
section.videos .container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 80%;
    margin: 0 auto;
}
section.videos .container div.video {
    flex: 2;
}
section.videos .container div.list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
section.videos .container div.list a.item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}
section.videos .container div.list a.item:hover {
    color: var(--accent-color);
}
section.videos .container div.list a.item.disabled {
    pointer-events: none;
    cursor: default;
}
section.videos .container div.list a.item div.image {
    flex: 1;
    position: relative;
}
section.videos .container div.list a.item div.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section.videos .container div.list a.item div.text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section.videos .container div.list a.item h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
section.videos .container div.list a.item p {
    line-height: normal;
}
section.videos .container div.list a.item div.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
@media (max-width: 1280px) {
    section.videos .container {
        width: 90%;
    }
}
@media (max-width: 1200px) {
    section.videos .container {
        width: 96%;
    }
}
@media (max-width: 1024px) {
    section.videos .container {
        flex-direction: column;
    }
    section.videos .container div.list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    section.videos .container div.video {
        flex: unset;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
@media (max-width: 640px) {
    section.videos .container div.list {
        grid-template-columns: repeat(1, 1fr);
    }
}

section.posters {
    margin: 5rem 0 6rem 0;
    padding: 4rem 5%;
    background-image: url('../images/poster-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}
section.posters h1 {
    margin-bottom: 2rem;
}
section.posters a {
    cursor: pointer;
}
section.posters .grid-container {
    column-gap: 5%;
    row-gap: 3vh;
}

section.features {
    margin: 5rem 0 6rem 0;
    text-align: center;
}

section.features .header {
    max-width: 80%;
    margin: 0 auto 2rem;
}

section.features .logo {
    width: 80%;
    max-width: 460px;
    margin: 0 auto 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 0 5px;
}

.grid-container .item {
    display: block;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* 正方形 */
}

.grid-container .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-container .item:hover img {
    transform: scale(1.05);
}
.grid-container .item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}
.grid-container .item:hover .overlay {
    opacity: 0;
}
.grid-container .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
}

.cta-area {
    margin-top: 6rem;
}

.btn-cta {
    display: inline-block;
    padding: 15px 60px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-size: 2rem;
    letter-spacing: 4px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: #000;
    color: #fff;
}
@media (max-width: 768px) {
    section.features .header p {
        text-align: left;
    }
}

section#form {
    width: 100%;;
    height: 2200px;
    overflow: hidden;
}
section#form h2 {
    font-size: 2rem;
    text-align: center;
    margin: 5rem 0 2rem 0;
}
section#form iframe {
    width: 100%;
    height: 100%;
    border: none;   
}
@media (max-width: 768px) {
    section#form {
        height: 2000px;
    }
}
@media (max-width: 420px) {
    section#form {
        height: 1750px;
    }
}

footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 2rem;
    position: relative;
    padding-top: 6rem;
    min-height: 1200px;
    background-color: #6a8ccc;
    background-image: url('../images/hero-car-v3.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}
footer .badge {
    width: 240px;
    margin-left: 2rem;
}
footer .content p {
    margin-left: 2rem;
}
footer .content img.promo {
    display: block!important;
}

@media (max-width: 1023px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    footer .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .grid-container .caption {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .btn-cta {
        font-size: 1.5rem;
        padding: 15px 40px;
    }
    footer {
        flex-direction: column;
        justify-content: flex-start;
        background-image: url('../images/hero-car-v3-vertical.jpg');
        background-size: contain;
        padding-top: 3rem;
        min-height: 900px;
    }
    footer .badge {
        position: relative;
        z-index: 10;
        width: 240px;
        margin: 0 auto;
    }
}
@media (max-width: 500px) {
    footer .badge {
        width: 50%;
    }
}

.notice {
    width: 90%;
    margin: 2rem auto;
    font-size: 14px;
    line-height: 1.7;
}
.notice ol {
    padding-left: 1.5rem;
}
.notice ul {
    padding-left: 1.5rem;
}
.notice a:link,
.notice a:visited {
    color: #666;
    text-decoration: underline;
}
.notice a:hover,
.notice a:active {
    color: #000;
}
@media (max-width: 500px) {
    body {
        padding-bottom : 30px;
    }
    .notice {
        width: 86%;
        font-size: 12px;
        letter-spacing: 0;
    }
}
