:root {
    --color-primary: #ba160c;
    --color-secondary: #ba160c;
    --color-header-text: #fff;
}

body {
    color: #000;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: justify;
    text-align-last: left;
    line-height: 2;
    background: #fff8e7;
}

li {
    display: flex;
    align-items: center;
}

a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.divider {
    width: 90vw;
    max-width: 1200px;
    height: 1px;
    background-color: #eee;
    border: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100vw;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 1200px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    width: 100vw;
    color: var(--color-header-text);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 60%);
    box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.125);
    -webkit-box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.125);
    -moz-box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.125);
    -o-box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.125);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
    height: 70px;
}

.header__brand {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 20%;
}

.header__brand .logo__link img {
    height: 55px;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
}

.header__nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.header__nav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.header__mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 90vw;
    max-width: 1200px;
}

.mobile__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
}

.mobile__brand .logo__link img {
    height: 55px;
}

.mobile__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 70px 0;
}

.mobile__nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .header__inner {
        display: none;
    }
    .header__mobile {
        display: flex;
    }
}

.banner {
    margin-top: 70px;
    position: relative;
    width: 100vw;
}

.banner__img {
    width: 100vw;
    height: auto;
    display: block;
}

.banner__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner__content {
    max-width: 500px;
}

.banner__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner__subtitle {
    margin-bottom: 2rem;
}

.banner__content img {
    width: 60vw;
    min-width: 300px;
    max-width: 500px;
}

.banner__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    padding: 0.5rem 2rem;
    background: #fff;
    color: var(--color-primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.layout-split--about {
    background: url("../images/bg-1.webp") center / cover no-repeat;
}

.layout-split--intro {
    background: url("../images/bg-2.webp") center / cover no-repeat;
}

.layout-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100vw;
    padding: 10rem 0;
}

.layout-split__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: 1200px;
    gap: 4rem;
}

.layout-split__media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-split__img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
    height: auto;
    object-fit: contain;
}

.layout-split__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    letter-spacing: 3px;
}

.layout-split__title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.layout-split__text {
    font-size: 14px;
    margin-bottom: 3rem;
    color: #000;
}

.layout-split__button {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 60px;
    width: auto;

    background: var(--color-primary); /* 按鈕本體 */
    color: #fff;

    /* 雙外框 */
    border: 1px solid #fff; /* 內框：白色 */
    outline: 3px solid var(--color-primary); /* 外框：主色 */
    outline-offset: 0;

    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.layout-split--reverse .layout-split__inner {
    flex-direction: row-reverse;
}

.layout-split--vertical .layout-split__inner {
    padding: 100px 0 0 0;
    margin: 0 0 100px 0;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.layout-split--vertical .layout-split__img {
    width: 100%;
    max-width: 1200px;
    border-radius: 5px;
    height: auto;
    object-fit: contain;
}

.price-section {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    font-family: sans-serif;
    margin: 100px 0;
}

.price-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.price-name {
    color: var(--color-primary);
}

.price-name,
.price-value {
    font-size: 16px;
    font-weight: 500;
}

.price-value {
    color: rgb(182, 68, 0);
}

.price-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .layout-split__inner {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .layout-split--reverse .layout-split__inner {
        flex-direction: column;
    }

    .layout-split__img {
        width: 90vw;
        max-width: 500px;
    }
}

/* ===== Cards Layout ===== */

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 40px;
    width: 100vw;
    height: auto;
    padding: 100px 0;
}

.cards__item {
    flex: 1 1 300px;
    max-width: 360px;
}

.cards__title {
    font-size: 24px;
    color: #333;
    margin: 0 0 16px;
}

/* ===== List ===== */

.cards__list {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--color-header-text);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.cards__entry {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

/* ===== Row (name + price) ===== */

.cards__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap; /* 強制不換行 */
}

.cards__name {
    flex: 1;
    text-align: left;
}

.cards__price {
    min-width: 60px;
    text-align: right;
    color: var(--color-primary);
    font-weight: 500;
}

.cards__subtext {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.service-section {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    margin: 100px 0;
}

.container {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-item {
    background-color: #ffffff; /* 純白背景 */
    border-radius: 10px; /* 柔和圓角 */
    border: 1px solid #e5e5e580;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.service-item h3 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--color-primary); /* 你可以調整主題色 */
}

.service-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary); /* 深色標題 */
    text-align: center; /* 置中 */
    margin-bottom: 40px; /* 與下方內容間距 */
    letter-spacing: 0.05em;
}

/* 響應式：寬度小於 768px 時改成一欄 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 32px 0;
    }
}

/* ===== RWD ===== */

@media screen and (max-width: 900px) {
    .cards {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
    }

    .cards__item {
        flex: 1 1 300px;
        max-width: 80vw;
    }
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 10rem 0 2rem 0;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    background: #f7e7ce;
    background-image: url(../images/bg-4.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

/* 4 欄彈性布局 */
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 2.5rem;

    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
}

/* 通用欄位設定 */
.footer__col {
    flex: 1 1 220px;
    display: flex;
    justify-content: center;
    align-items: start;
    text-align: start;
}

.footer__col iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px; /* 可依設計調整 */
    border: 0;
    border-radius: 10px;
}

.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.6rem;
}

/* Logo */
.footer__logo img {
    width: 140px;
    height: auto;
}

/* 文字與連結樣式 */
.footer__col a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer__col a:hover {
    opacity: 0.6;
}

/* Social */
.footer__social ul {
    flex-direction: row; /* 橫向排列 */
}

/* Copyright */
.footer__copyright {
    margin-top: 120px;
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
}

/* RWD */
@media (max-width: 900px) {
    .footer__inner {
        justify-content: center;
    }
}
