:root {
    --bg-size: 100%;
    --bs-white-rgb: 255, 255, 255;
    --content-size: 90%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    font-family: Arial, sans-serif;
    background-image: url('../images/index/background.png');
    background-repeat: repeat-y;
    background-attachment: fixed; /* 可選，用於固定背景 */
    background-position: center top;
    background-size: var(--bg-size);
    cursor: default;
}

.main_content {
    width: var(--content-size) !important;
}

.f_div_w {
    width: var(--bg-size) !important;
}

.h_div_w {
    width: var(--bg-size) !important;
}

.footer {
    height: 250px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(128, 128, 128, 0.5));
}

.copyright {
    font-size: 0.7em;
}

.menu_btn {
    background-image: url(../images/buttons/menu_btn.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: none;
    margin: 0 0.1rem;
}

.menu_btn:hover,
.menu_btn.active {
    background-image: url(../images/buttons/menu_hover_btn.png); /* 移入時更改背景圖片 */
}

.font-white {
    color: white;
}

.logo img {
    width: 4rem; /* 設置圖標寬度 */
    height: 4rem; /* 設置圖標高度 */
}

.header {
    background-image: url(../images/index/title.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 6.5rem;
    cursor: pointer;
}

.bg-white-opacity-50 {
    --bs-bg-opacity: 0.5;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}

.bg-title {
    font-size: 2em;
    background: linear-gradient(90deg, #387878 0%, #04216f 70%); /* 設置漸層背景 */
}

.about_slogan {
    font-size: 2em;
    margin: 0;
}

.about_content {
    font-size: 1.2em;
    font-weight: bolder;
    margin-top: 10px;
}

.b-box-mobile {
    width: 180px;
    height: auto;
    background-image: url('../images/index/mobile_btn.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.b-box-mobile:hover {
    background-image: url('../images/index/mobile_btn_hover.png'); /* 移入時更改背景圖片 */
}

.b-box {
    /* height: 100%; */
    height: 305px;
    width: auto;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease-in-out;
}

.b-box::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    /* background-position: center; */
    background-repeat: no-repeat;
    transition: clip-path 0.5s ease; /* 添加hover效果 */
    clip-path: inset(0% 0% 100% 0%); /* 定義初始剪裁區域 */
}

#b-box1 {
    background-image: url('../images/buttons/about1.png');
    width: 145px;
}
#b-box2 {
    background-image: url('../images/buttons/assist1.png');
    width: 105px;
}
#b-box3 {
    background-image: url('../images/buttons/customer1.png');
    width: 105px;
}
#b-box4 {
    background-image: url('../images/buttons/contact1.png');
    width: 145px;
}

.b-btn1,
.b-btn2,
.b-btn3,
.b-btn4  {
    top: 25%; 
    width: 6.5rem;
    height: 14.3rem;
    background-color: transparent; 
    z-index: 1;
}

.b-btn4  {
    margin-left: 39px;
}

#b-box1.hover::after,
#b-box2.hover::after,
#b-box3.hover::after,
#b-box4.hover::after {
    clip-path: inset(0% 0% 0% 0%);
}

#b-box1::after {
    background-image: url('../images/buttons/about2.png');
}

#b-box2::after {
    background-image: url('../images/buttons/assist2.png');
}

#b-box3::after {
    background-image: url('../images/buttons/customer2.png');
}

#b-box4::after {
    background-image: url('../images/buttons/contact2.png');
}

.b-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 99;
    width: 2.3rem;
    height: 2.3rem;
}

#b-icon1 {
    background-image: url(../images/index/about_icon.png);
}

#b-icon2 {
    background-image: url(../images/index/assist_icon.png);
}

#b-icon3 {
    background-image: url(../images/index/cust_icon.png);
}

#b-icon4 {
    background-image: url(../images/index/contact_icon.png);
}

.b-vertical-text {
    writing-mode: vertical-rl; /* 垂直排列文字 */
    text-orientation: upright; /* 直排文字 */
}

.mirror {
    background-image: url(../images/others/arrow.png);
    background-repeat: no-repeat;
    background-size:100%;
    background-position: top center;
    height: 2rem;
    width: var(--content-size);
}
.mirror-transform {
    transform: scaleX(-1);
}

/* media start */
@media (min-width: 576px) {
    .index_div_w {
        width: 100% !important;
    }
    .mirror {
        height: 3rem;
    }
}

@media (min-width: 768px) {
    .index_div_w {
        width: 90% !important;
    }
    .mirror {
        height: 3rem;
    }
}

@media (min-width: 992px) {
    .index_div_w {
        width: 80% !important;
    }
    .mirror {
        height: 4rem;
    }
}

@media (min-width: 1200px) {
    .index_div_w {
        width: 70% !important;
    }
    .mirror {
        height: 4rem;
    }
}

@media (min-width: 1400px) {
    .index_div_w {
        width: 60% !important;
    }
    .mirror {
        height: 4rem;
    }
}
/* media end */

/* Cookie Consent Banner */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#cookieConsent.show {
    display: block;
}

#cookieConsent .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

#cookieConsent .cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.5;
}

#cookieConsent .cookie-text a {
    color: #4CAF50;
    text-decoration: underline;
}

#cookieConsent .cookie-buttons {
    display: flex;
    gap: 10px;
}

#cookieConsent button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#acceptCookies {
    background-color: #4CAF50;
    color: white;
}

#acceptCookies:hover {
    background-color: #45a049;
}

#declineCookies {
    background-color: #f44336;
    color: white;
}

#declineCookies:hover {
    background-color: #da190b;
}

@media (max-width: 768px) {
    #cookieConsent .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    #cookieConsent .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

