/* ==========================================
   Mission Section
   ========================================== */
.mission-section {
    padding: 100px 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mission-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    height: 750px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-title {
    color: #E60012;
    font-family: 'Noto Sans TC';
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: 227%;
    letter-spacing: 3.6px;
}

.central-oval {
    width: 90%;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-radius: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.content-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 25%;
    text-align: left;
}

.mission-desc {
    color: #231815;
    font-family: 'Noto Sans TC';
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: -0.32px;
}

/* 漂浮方塊 */
.floating-box {
    position: absolute;
    width: 275px;
    height: 200px;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3;
    animation: floating 6s ease-in-out infinite;
}

    .floating-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
    z-index: 2;
}

.overlay-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 16px;
}

.mission-container:hover .box-overlay {
    opacity: 1;
}

.floating-box a:hover .box-overlay {
    background-color: #e60012;
    transform: scale(1);
    opacity: 1;
}

.floating-box a:hover img {
    transform: scale(1.1);
}

/* 各漂浮方塊位置 */
.box-1 {
    top: 30%;
    left: -10%;
    animation-delay: 0s;
}

.box-2 {
    top: 10%;
    right: 5%;
    animation-delay: 0.5s;
}

.box-3 {
    right: 0;
    bottom: 10%;
    animation-delay: 1.2s;
}

.box-4 {
    bottom: 45%;
    left: 85%;
    animation-delay: 0.8s;
}

/*.box-5,
.box-6 {
    z-index: 0;
}*/

.box-5 {
    bottom: -10%;
    left: 20%;
    animation-delay: 1.6s;
}

.box-6 {
    bottom: 75%;
    left: 10%;
    animation-delay: 2.2s;
}

    /*.box-5 img,
    .box-6 img {
        display: block;
        filter: blur(1px);
        -webkit-filter: blur(3px);
    }*/

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, -15px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* ==========================================
   News
   ========================================== */
.news-header {
    padding: 0 15px;
    margin-bottom: 20px;
    font-family: "微軟正黑體", sans-serif;
}

.title-main {
    color: #231815;
    font-family: "Noto Sans TC";
    font-size: 27px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.307%;
    letter-spacing: 2px;
}

.title-sub {
    color: #E60012;
    font-family: "Noto Sans TC";
    font-size: 27px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.72px;
}

#GridView1 {
    border-style: none !important;
    border-width: 0 !important;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .news-item:hover {
        background-color: #fcfcfc;
    }

    .news-item::after {
        content: "〉";
        margin-left: auto;
        padding-right: 10px;
        color: #ccc;
        font-family: "Consolas", monospace;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .news-item:hover .news-link {
        color: #000 !important;
    }

    .news-item:hover::after {
        color: #e60012;
        transform: translateX(5px);
    }

.news-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 220px;
}

.news-date {
    margin-right: 15px;
    color: #000;
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.307%;
    letter-spacing: 0.48px;
}

.news-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.307%;
    letter-spacing: 1.2px;
}

.news-link {
    padding-left: 3%;
    color: #231815;
    font-family: "Noto Sans TC";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.307%;
    letter-spacing: 2.713px;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.news-linkred {
    padding-left: 3%;
    color: #e60012;
    font-family: "Noto Sans TC";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 121.307%;
    letter-spacing: 2.713px;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.badge-red {
    background-color: #e60012;
    color: #fff !important;
    font-weight: 500;
}

.badge-blue {
    background-color: #98E5F2;
    color: #000 !important;
    font-weight: 500;
}

/*了解更多 BUTTON RWD*/
.more-btn {
    position: absolute;
    left: 14%;
    bottom: 23%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
    min-width: clamp(120px, 13vw, 170px);
    height: clamp(34px, 3.5vw, 48px);
    padding: 0 clamp(18px, 2.2vw, 28px);
    background-color: #e60012;
    color: #fff;
    border: 2px solid #e60012;
    border-radius: 999px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .more-btn:hover {
        background-color: transparent;
        color: #e60012;
        border-color: #e60012;
    }

.more-arrow {
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1;
    transition: transform 0.3s ease;
}

.more-btn:hover .more-arrow {
    transform: translateX(5px);
}

/* ==========================================
   原本電腦 / 筆電尺寸設定，保留不動
   ========================================== */
@media (max-width: 1600px) {
    .mission-container {
        max-width: 750px;
        height: 580px;
    }

    .mission-title {
        font-size: 22px;
    }

    .mission-desc {
        font-size: 18.5px;
    }

    .floating-box {
        width: 210px;
        height: 155px;
    }

    .overlay-text,
    .news-date,
    .news-link,
    .news-linkred {
        font-size: 18px;
    }

    .title-main,
    .title-sub {
        font-size: 20px;
    }
}

/* 初始狀態：稍微向下偏移並透明 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 啟動狀態 */
.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* 定義進場動畫：由上而下滑入並漸顯 */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 應用到最上面的圖片容器 */
.hero-vector-animation {
    animation: heroFadeIn 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 讓圖片在動畫開始前先隱藏，避免閃爍 */
#carouselExampleControls1 {
    opacity: 0;
    animation: heroFadeIn 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* =========================================================
   手機版 UI / UX 優化
   只在 767px 以下生效
   電腦版、筆電版、平板橫向不受影響
   ========================================================= */
@media screen and (max-width: 767px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ==============================
       首頁上方圖片 / 輪播
       ============================== */
    #carouselExampleControls1,
    #carouselExampleControls {
        width: 100%;
        overflow: hidden;
    }

        #carouselExampleControls1 img,
        #carouselExampleControls img,
        #carouselExampleControls .carousel-item img {
            width: 100% !important;
            height: auto !important;
            display: block;
        }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .more-btn {
        left: 7%;
        bottom: 9%;
        min-width: 92px;
        height: 30px;
        padding: 0 14px;
        gap: 8px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.8px;
        border-width: 1px;
    }

    .more-arrow {
        font-size: 14px;
    }

    .more-btn:hover {
        background-color: #e60012;
        color: #fff;
        border-color: #e60012;
    }

        .more-btn:hover .more-arrow {
            transform: none;
        }


    /* ==============================
       Mission Section
       手機版改成清楚的直式內容區
       ============================== */
    .mission-section {
        padding: 48px 0 44px !important;
        display: block;
        background-color: #fff;
        overflow: hidden;
    }

    .mission-container {
        width: 90%;
        max-width: none;
        height: auto;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 16px;
        position: relative;
    }

    .central-oval {
        order: 1;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 30px 22px;
        border-radius: 26px;
        background-color: #fff;
        border: 1px solid #eeeeee;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .content-text {
        width: 100%;
        padding: 0;
        display: block;
        text-align: left;
    }

    .mission-title {
        font-size: 20px;
        line-height: 1.45;
        letter-spacing: 1.2px;
        margin-bottom: 12px !important;
    }

    .mission-desc {
        font-size: 15px;
        line-height: 1.85;
        letter-spacing: 0.5px;
        font-weight: 500;
        margin: 0;
    }

    .floating-box {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 2;
        width: 100%;
        height: 135px;
        border-radius: 18px;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        animation: none;
        z-index: 1;
    }

        .floating-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: none;
        }

    .box-1,
    .box-2,
    .box-3,
    .box-4,
    .box-5,
    .box-6{
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    /*.box-5,
    .box-6 {
        display: none;
    }*/

    .floating-box a {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .box-overlay {
        opacity: 1;
        transform: none;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 0 16px 16px;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.6) );
    }

    .mission-container:hover .box-overlay {
        opacity: 1;
    }

    .floating-box a:hover .box-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.6) );
    }

    .floating-box a:hover img {
        transform: none;
    }

    .overlay-text {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 0;
    }


    /* ==============================
       News Section
       手機版卡片化
       ============================== */

    .container-fluid.mx-auto.py-5 {
        max-width: none !important;
        width: 100% !important;
        padding: 40px 16px !important;
    }

    .news-header {
        padding: 0;
        margin-bottom: 18px;
    }

    .title-main,
    .title-sub {
        font-size: 22px;
        line-height: 1.3;
    }

    .title-main {
        letter-spacing: 1.5px;
    }

    .title-sub {
        margin-left: 4px;
        letter-spacing: 0.6px;
    }

    #GridView1 {
        width: 100% !important;
        border: none !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
    }

        #GridView1 tbody,
        #GridView1 tr,
        #GridView1 td {
            display: block;
            width: 100%;
            border: none !important;
        }

        #GridView1 td {
            padding: 0 !important;
        }

    .news-item {
        position: relative;
        display: block;
        width: 100%;
        padding: 16px 38px 16px 16px;
        background-color: #fff;
        border: 1px solid #eeeeee;
        border-radius: 16px;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.045);
    }

        .news-item:hover {
            background-color: #fff;
        }

        .news-item::after {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            margin-left: 0;
            padding-right: 0;
            font-size: 16px;
            color: #cfcfcf;
        }

        .news-item:hover::after {
            transform: translateY(-50%);
            color: #cfcfcf;
        }

    .news-meta {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .news-date {
        margin-right: 4px;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 0.4px;
        white-space: nowrap;
    }

    .news-badge {
        padding: 4px 9px;
        border-radius: 999px;
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: 0.8px;
        white-space: nowrap;
    }

    .news-link,
    .news-linkred {
        display: block;
        padding-left: 0;
        font-size: 16px;
        line-height: 1.55;
        letter-spacing: 0.8px;
        word-break: break-word;
    }

    .news-link {
        color: #231815;
    }

    .news-linkred {
        color: #e60012;
    }
}


/* =========================================================
   小手機 360px 以下微調
   ========================================================= */
@media screen and (max-width: 360px) {

    .more-btn {
        left: 6%;
        bottom: 8%;
        min-width: 78px;
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
        gap: 6px;
    }

    .more-arrow {
        font-size: 12px;
    }

    .mission-container {
        width: 92%;
        gap: 14px;
    }

    .central-oval {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .mission-title {
        font-size: 18px;
    }

    .mission-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .floating-box {
        height: 120px;
        border-radius: 16px;
    }

    .overlay-text {
        font-size: 15px;
    }

    .container-fluid.mx-auto.py-5 {
        padding: 36px 14px !important;
    }

    .title-main,
    .title-sub {
        font-size: 21px;
    }

    .news-item {
        padding: 15px 34px 15px 14px;
        border-radius: 15px;
    }

    .news-link,
    .news-linkred {
        font-size: 15px;
    }
}
/* 底部酒類警語 */
.alcohol-warning-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    /* 移除 background-color 和 padding，讓圖片完全貼齊邊緣 */
    padding: 0;
    margin: 0;
}

/* 圖片本身設定 */
.alcohol-warning-img {
    display: block;
    width: 100%; /* 強制圖片寬度與螢幕同寬 */
    height: auto; /* 高度自動等比例縮放，避免圖片變形 */
}

@media (max-width: 576px) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .alcohol-warning-bar {
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .alcohol-warning-img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 1200px) {
    body {
        /* 因為現在圖片會無限制跟著螢幕放大，大螢幕時圖片高度會變高 */
        /* 建議底部空間稍微加大，避免蓋住頁碼 */
        padding-bottom: 120px;
    }

    .alcohol-warning-img {
        width: 100%; /* ✅ 強制 100% 滿版，不限制寬度 */
        height: auto;
    }
}