/* ===== 統一完整版 CSS（請單獨使用） ===== */
* { box-sizing: border-box; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-size: 16px;
    color: #333333;
    font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
    background: #f6f1eb;
}

a { text-decoration: none; }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body:not(.user-is-tabbing) button:focus {
    outline: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: .85rem;
    line-height: 1;
    white-space: nowrap;
}

.btn-gray { color: #333333; background: #CCB090; }
.btn-mt { color: #333333; background: #CCB090; }

/* ===== Header ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 14px 20px;
}

header h1 {
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
    max-width: 100%;
}

header h1 img {
    width: auto;
    max-width: 185px;
    max-height: 52px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

header nav a { margin: 0; }

/* 修改 final_clean_style.css 中的 .banner 區塊 */
.banner {
    width: 100%;
    overflow: hidden;
    background: #ffffff; /* 或者你的背景色 */
    aspect-ratio: 1920 / 820; /* ⚠️重要：請填入你圖片真實的長寬比例 */
    position: relative;
}
/* --- 確保 Slick JS 啟動前不跑版，啟動後不干擾運作 --- */

/* 1. 上方 Banner 預防跑版 */
.banner:not(.slick-initialized) > a:nth-child(n+2) {
    display: none;
}

/* 2. 下方手機 預防跑版 */
.sopSlider:not(.slick-initialized) > img:nth-child(n+2) {
    display: none;
}


/* ===== Main Content ===== */
.content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* ===== 六個賣點 ===== */
.feature {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 3rem 0;
    background: url(../images/weblimit.jpg) top center no-repeat;
    background-size: cover;
    order: 1;
    width: 100%;
}

.featureItem {
    flex: 1 1 16.66%;
    min-width: 0;
    text-align: center;
    border-right: 1px solid #ccc;
    padding: 0 12px;
}

.featureItem:nth-last-child(1) { border-right: none; }

.featureItem img {
    width: 7rem;
    max-width: 7rem;
    margin: 0 auto;
}

.featureItem h3 {
    color: #333333;
    margin: .5rem 0 0;
    line-height: 1.4;
}

/* ===== SOP ===== */
.sop {
    width: 100%;
    background: url(../images/bg_sop.jpg) top center;
    padding: 3rem 2rem;
    order: 2;
}

.sop h2 {
    width: min(60%, 720px);
    margin: 0 auto 1rem auto;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.sopContent {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    margin: 2rem auto 0;
    max-width: 1200px;
}

.sopContent ul {
    width: 55%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sopContent ul li { margin-bottom: 1rem; }
.sopContent ul li h3 { color: #8B693A; margin: .5rem; }
.sopContent ul li p {
    padding: 1rem;
    margin: 0;
    border: 1px solid #CCB090;
    border-radius: 8px;
    background: rgba(255, 255, 255, .6);
    line-height: 1.8;
}

.sopSlider {
    width: 40%;
    max-width: 380px;
    margin-left: auto;
    overflow: hidden;
}

.sopSlider,
.sopSlider .slick-list,
.sopSlider .slick-track {
    width: 100%;
}

.sopSlider .slick-list { overflow: hidden; }
.sopSlider .slick-slide { height: auto; }
.sopSlider .slick-slide img,
.sopSlider > img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}



.slick-prev {
    left: 20px !important;
    z-index: 5;
}
.slick-prev:before { content: '〈' !important; }
.slick-next {
    right: 20px !important;
    z-index: 5;
}
.slick-next:before { content: '〉' !important; }

/* ===== 社群 ===== */
.socialLink {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin: 1rem auto 0;
    max-width: 1200px;
}

.socialLink a {
    width: 128px;
    min-height: 120px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #333;
}

.socialLink img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.socialLink span {
    display: block;
    min-height: 44px;
    line-height: 1.45;
    font-size: 16px;
}

/* ===== 中段四格 ===== */
.linkArea {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin: .5rem 0 1rem 0;
    order: 3;
    width: 100%;
    padding: 0 1rem;
}

.linkItem {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 1rem;
    height: 16rem;
    border: 1px solid #CCB090;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.linkItembg {
    position: absolute;
    top: 1rem;
    left: 2rem;
    width: 80%;
    height: 16rem;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .26;
    filter: brightness(100%) contrast(100%) saturate(100%);
}

.linkItem h3 a {
    font-size: 1.75rem;
    color: #CCB090;
}

.linkItem p {
    text-align: left;
    line-height: 1.5;
}

/* ===== 五格分類 ===== */
.linkArea2 {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin: .5rem 0 1rem 0;
    order: 5;
    width: 100%;
    padding: 0 1rem;
}

.linkItem2 {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 1rem;
    height: 20rem;
    border: 1px solid #CCB090;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.linkItem2 .linkItembg {
    width: 100%;
    height: 20rem;
    background-size: cover;
    top: 0;
    left: 0;
    filter: none;
    opacity: 1;
    z-index: 0;
}

.linkItem2 a {
    display: block;
    width: 100%;
    height: 100%;
}

.linkItem2 p {
    position: relative;
    z-index: 99;
    top: 3rem;
    text-align: left;
    color: #000000;
    text-shadow: none;
    font-size: 1rem;
    font-weight: normal;
}

.linkItem2 h3 {
    font-size: 1.75rem;
    color: #ffffff;
    text-shadow: 0 0 0.2em #000;
    position: relative;
    z-index: 99;
    top: 3rem;
    text-align: left;
}

.linkArea img,
.linkArea2 img {
    position: absolute;
    right: 1rem;
    top: 1rem;
    max-width: 120px;
    width: auto;
}

/* ===== Store ===== */
.store {
    display: block;
    width: 100%;
    min-height: 30rem;
    position: relative;
    background-image: url(../images/bg_girl.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    order: 4;
}

.storeTxt {
    position: absolute;
    right: 3rem;
    top: 3rem;
    width: min(35%, 420px);
    text-align: center;
}

.storeTxt h2 { font-size: 1.75rem; margin: 0 0 8px; }
.storeTxt p { margin: 0 0 10px; }
.storeTxt img { margin: 0 auto; }

/* ===== 影片 ===== */
.videoWrap {
    width: min(100%, 960px);
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16 / 9;
}

.videoWrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== Footer ===== */
footer {
    background: #414655;
    padding: 1rem;
}

.brands {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding: .5rem 1rem;
    flex-wrap: wrap;
}

.brands img {
    max-width: 100px;
    width: auto;
    filter: grayscale(70);
}

.bottomLinks {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1rem;
}

.bottomLinks a {
    padding: .5rem 1.5rem;
    color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 2px;
}

/* ===== 底部固定導覽 ===== */
.bottomNav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    width: 100%;
    background: linear-gradient(0deg, #d3c4b3 0%, #F9F2EA 100%);
    border-top: 1px solid #d8c8b8;
}

.bottomNav a {
    width: 100%;
    text-align: center;
    color: #555;
    padding: .45rem;
    font-size: 13px;
    line-height: 1.2;
}

.bottomNav a img {
    display: block;
    width: 20px;
    max-width: 20px;
    margin: 5px auto;
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
    .feature {
        flex-wrap: wrap;
        row-gap: 20px;
        padding: 2rem 1rem;
    }

    .featureItem {
        flex: 1 1 33.333%;
        border-right: none;
    }

    .sop {
        padding: 2rem 1rem;
    }

    .sopContent {
        display: block;
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .sopContent ul,
    .sopSlider {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .sopSlider {
        max-width: 280px;
    }

    .socialLink {
        flex-wrap: wrap;
        gap: 14px;
    }

    .socialLink a {
        width: auto;
        min-height: 0;
        padding: 0;
    }

    .socialLink img {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }

    .socialLink span {
        min-height: 0;
        font-size: 14px;
    }

    .linkArea {
        flex-wrap: wrap;
        padding: 0 .75rem;
    }

    .linkItem {
        flex: 1 1 calc(50% - 2rem);
    }

    .linkArea2 {
        flex-wrap: wrap;
        padding: 0 .75rem;
    }

    .linkItem2 {
        flex: 1 1 calc(50% - 2rem);
        height: 22rem;
    }

    .linkItem2 .linkItembg {
        height: 22rem;
    }

    .storeTxt {
        right: 1.5rem;
        width: min(42%, 360px);
    }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    header {
        padding: 10px 12px;
        gap: 8px;
    }

    header h1 img {
        max-width: 150px;
        max-height: 44px;
    }

    .btn {
        min-width: 42px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .content {
        padding-bottom: 66px;
    }

    .feature {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 14px 12px;
        background-size: cover;
        order: 2;
    }

    .featureItem {
        width: 100%;
        min-width: 0;
        border: 1px solid #ccc;
        border-radius: 8px;
        margin: 0;
        padding: 16px 10px;
        background: rgba(255, 255, 255, .6);
    }

    .featureItem img {
        width: 56px;
        max-width: 56px;
    }

    .featureItem h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .sop {
        order: 3;
        padding: 1rem;
    }

    .sop h2 {
        width: 100%;
        font-size: 18px;
    }

    .sopContent {
        margin: 0;
        padding: 1rem 0;
    }

    .sopSlider {
        max-width: 255px;
    }

    footer {
        display: none;
    }

    .linkArea2 {
        order: 1;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid #CCB090;
        border-bottom: 1px solid #CCB090;
        background: #F9F2EA;
    }

    .feature {
        order: 2;
    }

    .linkArea {
        order: 4;
        display: none;
    }

    .store {
        order: 5;
        min-height: 0;
        height: auto;
        padding: 3rem 1rem;
        background-position: 60% top;
        background-size: cover;
    }

    .linkItem2 {
        width: auto;
        min-width: 0;
        padding: 0;
        margin: 0;
        height: auto;
        min-height: 150px;
        border: 0;
        border-right: 1px solid #CCB090;
        border-radius: 0;
        background: linear-gradient(0deg, #ffffff 0%, #F9F2EA 100%);
    }

    .linkItem2:last-child { border-right: 0; }

    .linkItem2 a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding: 8px 4px 10px;
        text-align: center;
    }

    .linkItem2 .linkItembg,
    .linkItem2 p {
        display: none;
    }

    .linkArea2 img {
        position: static;
        right: auto;
        top: auto;
        width: 42px;
        max-width: 42px;
        margin: .5rem auto;
    }

    .linkItem2 h3 {
        font-size: 1rem;
        color: #CCB090;
        text-shadow: none;
        position: static;
        text-align: center;
        line-height: 1.35;
        margin: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .storeTxt {
        position: static;
        right: auto;
        top: auto;
        width: 100%;
        margin: auto;
    }

    .bottomNav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}
