.links_img_r {
    border-radius: 50px;
    max-width: 80px;
    margin: 10px;
}

.links_img {
    border-radius: 5px;
    max-width: 100px;
}

.chocolate-classical-sans-regular {
    font-family: "Chocolate Classical Sans", sans-serif;
    font-weight: 300;
    font-style: normal;
}

:root {
    --eoi-glass-background: rgba(22, 88, 188, 0.66);
    --eoi-glass-hover-background: rgba(22, 88, 188, 0.4);
    --eoi-glass-shadow:
        inset 1px 2px 1px rgba(200, 200, 256, 0.6),
        /* 上亮 */
        inset -1px -2px 1px rgba(0, 0, 20, 0.2),
        /* 下暗 */
        2px 2px 5px rgba(0, 0, 0, 0.4);
    /* 整體陰影 */
}

/* 預設樣式（適用於桌面等大螢幕） */
body {
    font-size: 1.2rem;
    font-family: "Chocolate Classical Sans", sans-serif;
    background-color: #fffdf1;
    width: 100%;
    padding: 0;
    margin: 0;
}

html {
    scroll-padding-top: 140px;
}

header {
    margin: 0;
    position: sticky;
    background-color: var(--eoi-glass-background);
    backdrop-filter: blur(7px);
    /* 讓背景模糊 */
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 使內容在水平方向上分散排列 */
    /* position: fixed; */
    /* 固定位置 */
    top: 0;
    /* 距離頁面頂部 */
    left: 0;
    right: 0;
    transition: all 0.3s ease;
    /* 使變化平滑 */
    z-index: 1000;
    /* 確保 header 在最上層 */
    box-shadow: var(--eoi-glass-shadow);
}

header img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    transition: all 0.3s ease;
    /* 圖片變化平滑 */
}

.header-content,
.liaison-title {
    display: flex;
    align-items: center;
}

.flex-buttons {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    max-width: 80%;
}

.flex-buttons>br {
    grid-area: 1 / 2;
}

.flex-buttons button {
    min-width: 100px;
    color: #fff;
    font-size: 1.2rem;
}

nav {
    text-align: center;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

nav a:hover {
    color: rgba(256, 256, 256, 0.75);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    /* 初始隱藏 */
    position: absolute;
    right: 0rem;
    /* 讓下拉菜單靠齊右邊，防止超出視窗 */
    background-color: rgba(255, 255, 255, 1);
    /* 讓背景模糊 */
    color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    /* 圓角 */
}

.dropdown-content button {
    font-size: 1rem;
    color: black;
    padding: 9px 12px;
    text-decoration: none;
    display: block;
    border: none;
    background: none;
    width: 90%;
    text-align: center;
    box-shadow: none;
    /* 左對齊 */
    border-radius: 10px;
    /* 圓角 */
}

.dropdown-content button:hover {
    background: none;
    /* 懸停顏色 */
    color: gray;
}

.dropdown:hover .dropdown-content {
    display: block;
    /* 滑鼠懸停時顯示 */
}

.bg-image,
.bg-b {
    position: fixed;
    /* 讓圖片固定在視窗 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 讓圖片真正置中 */
    height: auto;
    /* 防止圖片超出視窗 */
    object-fit: cover;
    /* 讓圖片適應視窗 */
}

.bg-image {
    width: 100%;
    /* 防止圖片超出視窗 */
    z-index: -1;
    /* 放在最底層，避免擋住其他內容 */
}

.bg-b {
    width: auto;
    /* 防止圖片超出視窗 */
    z-index: -2;
    /* 放在最底層，避免擋住其他內容 */
}

section {
    max-width: 1500px;
    margin: 30px 3rem;
    /* 調整與頁面邊緣的距離 */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    /* 讓背景模糊 */
    border-radius: 15px;
    /* 圓角 */
    box-shadow: var(--eoi-glass-shadow);
}

h1 {
    margin: 0;
    color: white;
    font-size: 2.5rem;
    /* 預設大標題大小 */
}

h2.t2 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

rt {
    font-size: 0.5em;
    color: rgb(60, 88, 145);
}

span {
    font-weight: 700;
}

.span1.eoi {
    color: rgba(0, 100, 184, 1);
}

.nyc {
    color: rgba(45, 100, 150, 1);
}

.npc {
    color: rgba(240, 75, 75, 1);
}

.wcc {
    color: rgba(200, 48, 168, 1);
}

.jgc {
    color: rgba(215, 140, 30, 1);
}

.jlc {
    color: rgba(175, 64, 14, 1);
}

.dyc {
    color: rgba(60, 125, 100, 1);
}

.mec {
    color: rgba(40, 128, 128, 1);
}

.fic {
    color: rgba(160, 140, 100, 1);
}

footer {
    background-color: var(--eoi-glass-background);
    color: white;
    text-align: center;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    margin: 0;
}

button,
.commissioner_button {
    border-radius: 10px;
    /* 所有按鈕加圓角 */
    padding: 8px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 80px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    margin: 5px;
    white-space: nowrap;
    text-align: center;
    color: white;
    background-color: var(--eoi-glass-background);
}

button {
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--eoi-glass-hover-background);
    box-shadow: none;
}

button a:link,
button a:visited {
    color: white;
    /* 保持文字顏色與未訪問時一致 */
    text-decoration: none;
}

.skeuo-button {
    background: linear-gradient(to bottom, #e0e0e0, #a0a0a0);
    /* 漸層 */
    border: 1px solid #666;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 #fff,
        /* 上亮 */
        inset 0 -2px 2px rgba(0, 0, 0, 0.2),
        /* 下暗 */
        2px 2px 5px rgba(0, 0, 0, 0.4);
    /* 整體陰影 */
    padding: 10px 20px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.skeuo-button:active {
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 #fff;
    background: linear-gradient(to top, #e0e0e0, #a0a0a0);
    transform: translateY(2px);
}

.commissioner_button {
    box-shadow: var(--eoi-glass-shadow);
    backdrop-filter: blur(7px);
    /* 讓背景模糊 */
}

.commissioner_button:hover {
    transform: translateY(2px);
    box-shadow: none;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.footer_mark {
    width: auto;
    height: 64px;
}

.intro_mark_box {
    width: 100%;
    height: 128px;
    align-items: start;
    text-align: start;
}

.intro_mark {
    width: auto;
    height: 128px;
}

.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fixed-buttons a {
    display: inline-flex;
    font-size: 1.4rem;
    justify-content: center;
    align-items: center;
    height: 2.2rem;
    width: 2.2rem;
    text-align: center;
    padding: 2px;
    background: var(--eoi-glass-background);
    color: white;
    text-decoration: none;
    backdrop-filter: blur(7px);
    border-radius: 50%;
    box-shadow: var(--eoi-glass-shadow);
}

.fixed-buttons a:hover {
    background: var(--eoi-glass-hover-background);
    box-shadow: none;
}

/* 滾動後變小的樣式，適用於 h1 和 h2 */
header.small {
    padding: 10px;
}

header img.small {
    width: 50px;
    /* 縮小 logo */
    height: auto;
}

header h1.small {
    font-size: 1.5rem;
    /* H1 變小但仍較小螢幕大 */
}

header h2.small {
    font-size: 1rem;
    /* H2 變小但仍較小螢幕大 */
}

/* 小螢幕樣式 */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        /* 在手機上內容垂直排列 */
        align-items: center;
        /* 內容居中 */
        padding: 15px;
    }

    .header-content {
        flex-direction: row;
        /* 手機上保持 logo 和標題橫向排列 */
        align-items: center;
    }

    header img {
        width: 75px;
        /* 手機上的圖片大小 */
        height: auto;
        /* 確保圖片不變形 */
        margin-right: 10px;
        /* 圖片與文字之間的間距 */
    }

    header h1 {
        font-size: 28px;
        /* 手機上的標題大小 */
    }

    header h2.t2 {
        font-size: 18px;
    }

    .flex-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .flex-buttons>br {
        display: none;
    }

    .flex-buttons button {
        min-width: 185px;
        max-width: 260px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    nav {
        margin-top: 8px;
        /* 手機上導航欄與標題的間距 */
    }

    nav a {
        font-size: 16px;
        /* 放大 nav 選項按鈕的字體 */
    }

    section {
        padding: 15px;
        margin: 15px 10px;
        /* 手機版增加左右邊距，避免貼近邊緣 */
    }

    footer {
        padding: 5px;
    }

    .intro_mark {
        height: 96px;
    }

    html {
        scroll-padding-top: 110px;
    }

    /* 小螢幕變小程度 */
    header h1.small {
        font-size: 1.1rem;
        /* H1 在小螢幕變更小 */
    }

    nav.small {
        margin-top: 3px;
    }

    header h2.small {
        font-size: 0.8rem;
        /* H2 在小螢幕變更小 */
    }

    header img.small {
        width: 45px;
    }
}

/* 大螢幕模式下讓 #about 內部左右排版 */
@media (min-width: 901px) {
    .sp {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .sp .content {
        width: 48%;
        margin: 15px;
        /* 讓兩個區塊各佔 48% */
    }
}