:root {
    --primary: rgba(223, 146, 20, 1);
    --secondary: rgba(11, 49, 143, 1);
    --third: rgba(202, 48, 28, 1);
    --text: rgba(51, 51, 51, 1);
    --bg-primary: rgba(223, 146, 20, 1);
    --bg-secondary: rgba(11, 49, 143, 1);
    --bg-third: rgba(202, 48, 28, 1);
    --bg-white: rgba(255, 255, 255, 1);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
footer {
    font-family: Arial, '源石黑體', '源石ゴシック', sans-serif;
    color: #212529;
    font-weight: 400;
    line-height: 32px;
    font-size: 1rem;
}

body {
    font-family: Arial, '源石黑體', '源石ゴシック', sans-serif;
    background-color: #2c363f;
    color: #212529;
    font-weight: 400;
    text-align: center;
    /*padding-top: 50px;*/
    background-image: url(../images/bg-funky-lines.webp);
    background-size: auto;
    background-repeat: repeat;
}


/* --- HEADER --- */
header {
    position: sticky;
    /* 固定在上方 */
    top: 0;
    z-index: 1000;
    background-image: url(../images/bg-funky-lines.webp);
    background-size: auto;
    background-repeat: repeat;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    max-width: 1300px;
    margin: auto;
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    /* 左＝logo｜右＝nav, hamburger */
    align-items: center;
}

/* Logo */
.logo {
    max-width: 300px;
}

/* --- Top Button --- */
.menu-group {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    align-items: flex-end;
    /* 右對齊 */
    gap: 5px;
}

.top-button ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: -15px;
}

.top-button li {
    padding: 5px 10px 0;
    background: #e99214;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

}

.top-button a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
}

.top-button a:hover {
    color: #0b318f;
}

/* --- Desktop Menu --- */
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #212529;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #0088cc;
}

/* --- Hamburger Button --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #212529;
    transition: 0.3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background-color: #2c363f;
    overflow: hidden;
    height: 0;
    transition: height 0.4s ease;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0 25px;
    box-sizing: border-box;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-menu a {
    margin: 12px 0;
    font-size: 16px;
    text-decoration: none;
    color: #ffffff;
}


/* --- FEATURE CARD --- */
#item-101375138566 {
    margin: 100px auto;
}

.feature-card {
    position: relative;
    text-align: center;
    padding: 100px 25px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    /*transition: 0.3s ease;*/
    overflow: hidden;
    /* 避免偽元素超出 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* 背景填滿 */
.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    /* 從下開始 */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 144, 255, 1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease;
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

/* 圖片保持在上層 */
.feature-card img,
.feature-card div {
    position: relative;
    z-index: 1;
}

.feature-card img {
    display: block;
    margin: 0 auto 10px auto;
    width: 100px;
    transition: transform 0.6s ease, filter 0.3s ease;
    transform-style: preserve-3d;
}

.feature-card:hover img {
    filter: brightness(0) invert(1);
    transform: rotateY(360deg);
}

.feature-card div {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 0 0;
}

.feature-card:hover div {
    color: #ffffff;
}


/* --- FOOTER --- */
footer {
    background: #2c363f;
    color: #ffffff;
    padding: 25px 0;
}

#item-103912407860 {
    margin: 25px auto;
    display: flex;
    flex-wrap: wrap;
    /*justify-content: space-between;*/
    justify-content: center;
    align-items: flex-start;
}

.bottom-button {
    display: flex;
    flex-direction: column;
    max-width: 280px;
    gap: 10px;
    margin: 0 auto;
    /* 水平置中 */
}

.bottom-button a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e99214;
    color: #212529;
    text-decoration: none;
    /*border-radius: 5px;*/
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bottom-button a:hover {
    color: #0b318f;
}

.footer-icon {
    list-style: none;
    display: flex;
    /* 改為橫向排列 */
    gap: 20px;
    /* 圖示間距 */
    justify-content: center;
    padding: 0;
    margin: 15px 0 0 0;
}

.footer-icon li a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-icon li a:hover img {
    filter: brightness(1.2);
    /* 變亮效果 */
}

.footer-contact li {
    font-size: 1rem;
    line-height: 26px;
    text-align: left;
    list-style: none;
    color: #ffffff;
}

footer p {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {

    header .container {
        padding: 10px 15px;
    }

    .logo img {
        max-width: 220px;
    }

    .feature-card {
        padding: 30px 15px;
    }

    #item-103912407860>div {
        margin-bottom: 20px;
    }

}

@media (max-width: 768px) {

    header .container {
        padding: 10px 10px;
    }

    .top-button {
        display: none;
    }

    #item-101375138566 {
        margin: 50px auto;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #item-103912407860 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .footer-contact {
        padding-left: 0rem;
    }

    .footer-contact li {
        text-align: center;

    }

    .footer-icon {
        justify-content: center;
    }

    footer p {
        margin: 0px;
    }
}