/* ===== 修正後完整版 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; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.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, .btn-mt { color: #333333; background: #CCB090; }

/* Header */
header { display: flex; align-items: center; justify-content: space-between; background: #ffffff; padding: 14px 20px; }
header h1 img { max-width: 185px; max-height: 52px; }
header nav { display: flex; gap: 8px; }

/* Banner */
.banner { width: 100%; overflow: hidden; background: #ffffff; aspect-ratio: 1920 / 820; position: relative; }
.banner:not(.slick-initialized) > a:nth-child(n+2) { display: none; }

/* Feature */
.feature { display: flex; padding: 3rem 0; background: url(../images/weblimit.jpg) top center no-repeat; background-size: cover; width: 100%; order: 1; }
.featureItem { flex: 1; text-align: center; border-right: 1px solid #ccc; padding: 0 12px; }
.featureItem:last-child { border-right: none; }
.featureItem img { width: 7rem; margin: 0 auto; }

/* 入口區塊：修正無法點擊 */
.linkArea { display: flex; width: 100%; padding: 1rem; order: 3; flex-wrap: nowrap; }
.linkItem { position: relative; width: 25%; padding: 1.5rem; margin: 0.5rem; height: 16rem; border: 1px solid #CCB090; border-radius: 8px; text-align: center; overflow: hidden; background: rgba(255,255,255,0.4); }

/* 隱形全盒連結層 */
.item-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; display: block; cursor: pointer; }

.linkItembg { position: absolute; top: 1rem; left: 2rem; width: 80%; height: 14rem; background-position: top center; background-repeat: no-repeat; background-size: contain; opacity: .2; z-index: 1; }
.linkItem h3 { font-size: 1.75rem; color: #CCB090; position: relative; z-index: 10; margin: 1rem 0; }
.linkItem p { text-align: left; line-height: 1.5; font-size: 0.95rem; position: relative; z-index: 10; }

/* SOP Section */
.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; text-align: center; border-bottom: 1px solid #ccc; padding: 1rem 0; font-size: 2rem; }
.sopContent { display: flex; gap: 2rem; max-width: 1200px; margin: 2rem auto 0; }
.sopContent ul { width: 55%; list-style: none; padding: 0; }
.sopContent ul li h3 { color: #8B693A; margin: 0.5rem 0; }
.sopContent ul li p { padding: 1rem; border: 1px solid #CCB090; border-radius: 8px; background: rgba(255,255,255,.6); line-height: 1.8; }
.sopSlider { width: 40%; max-width: 380px; overflow: hidden; }
.sopSlider:not(.slick-initialized) > img:nth-child(n+2) { display: none; }

/* Social */
.socialLink { display: flex; justify-content: center; gap: 24px; margin-top: 1rem; }
.socialLink a { display: flex; flex-direction: column; align-items: center; text-align: center; color: #333; }
.socialLink img { width: 56px; height: 56px; margin-bottom: 5px; }

/* 館別區塊 */
.linkArea2 { display: flex; width: 100%; padding: 1rem; order: 5; flex-wrap: wrap; }
.linkItem2 { position: relative; width: 18%; margin: 1%; height: 20rem; border: 1px solid #CCB090; border-radius: 8px; text-align: center; overflow: hidden; }
.linkItem2 .linkItembg { width: 100%; height: 100%; background-size: cover; position: absolute; top: 0; left: 0; opacity: 1; }
.linkItem2 h3 { color: #fff; text-shadow: 0 0 5px #000; position: absolute; bottom: 10px; width: 100%; font-size: 1.75rem; z-index: 10; }
.linkItem2 img { position: relative; z-index: 5; margin: 2rem auto; }

/* Store & Video */
.store { width: 100%; height: 30rem; position: relative; background: url(../images/bg_girl.png) top center no-repeat; background-size: cover; order: 4; }
.storeTxt { position: absolute; right: 3rem; top: 3rem; width: 35%; text-align: center; }
.videoWrap { width: min(100%, 960px); margin: 2rem auto; aspect-ratio: 16 / 9; }
.videoWrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
footer { background: #414655; padding: 2rem 1rem; color: #fff; text-align: center; }
.brands { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 1rem; }
.brands img { max-width: 100px; filter: grayscale(1); opacity: 0.7; }
.bottomLinks a { color: #fff; padding: 0.5rem 1.5rem; border: 1px solid #ccc; margin: 0 5px; }

/* 底部導覽 */
.bottomNav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #F9F2EA; z-index: 9999; border-top: 1px solid #d8c8b8; height: 60px; align-items: center; }
.bottomNav a { flex: 1; text-align: center; font-size: 12px; color: #555; }
.bottomNav img { width: 22px; margin: 0 auto 3px; }

/* 手機版修正：確保入口區塊顯示 */
@media (max-width: 480px) {
    header h1 img { max-width: 150px; }
    .content { padding-bottom: 70px; }
    .feature { flex-wrap: wrap; order: 2; padding: 1rem; }
    .featureItem { flex: 1 1 33.3%; border: none; margin-bottom: 1rem; }
    .featureItem img { width: 4rem; }

    /* 手機版強制顯示 linkArea 並改為 2x2 排列 */
    .linkArea { display: flex !important; flex-wrap: wrap !important; order: 1 !important; padding: 10px !important; }
    .linkItem { width: calc(50% - 1rem) !important; height: auto !important; min-height: 12rem !important; padding: 1rem !important; }
    .linkItem h3 { font-size: 1.25rem !important; }
    .linkItem p { display: none; } /* 手機版隱藏描述避免重疊 */

    .sop { order: 3; padding: 1rem; }
    .sopContent { display: block; }
    .sopContent ul, .sopSlider { width: 100%; }

    .linkArea2 { order: 6; }
    .linkItem2 { width: 48%; height: 120px; margin: 1%; }
    .linkItem2 img { display: none; }

    footer { display: none; }
    .bottomNav { display: flex !important; }
}