body {
    /* font-family: Verdana, "微软雅黑", sans-serif; */
    font-family: "思源柔黑体";
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: white;
    padding-top: 1.5rem;
}

/* 設置麵包屑的樣式 */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #999;
    margin: 8px 0 8px 20px;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.breadcrumb a:hover {
    color: #555;
}

.breadcrumb span {
    margin: 0 10px;
}

.breadcrumb span:last-child {
    color: #555;
}

.title {
    text-align: center;
}

.linered {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 123, 0, 1)
}

.linespc {
    width: 100%;
    height: 10px;
    background-color: #ECF0F1
}

#logo {
    height: 120px;
    margin-right: 10px;
}

/* 禁止拖動圖片（img） */
.no-drag {
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    -webkit-user-drag: none;
    /* Safari */
    user-drag: none;
}

/*  禁止拖動（a标签）*/
a.no-drag {
    display: inline-block;
}

a.no-drag img {
    user-select: none;
    user-drag: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* 頁面文章主體內容 */
.content {
    font-size: 16px;
    border-width: 0px;
    border-style: solid;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
}

/* 下拉菜單的樣式 */
#lang-select {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    font-size: 1rem;
    color: black;
}

#lang-select:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #666 transparent transparent transparent;
}

#lang-select:focus,
#lang-dropdown:hover {
    outline: none;
}

#lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
    z-index: 999;
}

#lang-dropdown a {
    display: block;
    padding: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

#lang-dropdown a:hover {
    background-color: #f5f5f5;
}

#lang-checkbox:checked~#lang-dropdown {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

main {
    padding: 10px;
    background-color: #ecf0f1;
}

h1 {
    font-size: 20px;
    margin-bottom: 20px;
}

p {
    text-align: justify;
    text-indent: 1em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.no-indent:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    text-indent: 0;
}

.function {
    margin-top: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dadada;
    text-align: right;
    position: relative;
    float: left;
    width: 100%;
}

.center {
    text-align: center;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #484848e3;
    padding: 2rem;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-right: auto;
}

.footer-links a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-text p {
    margin: 0;
}

.footer-text img {
    height: 2.5rem;
    margin-left: 1.5rem;
}

.footer-images img {
    height: 7.5rem;
    margin: 0 0.5rem;
}

@media screen and (max-width: 768px) {
    #logo {
        height: 90px
    }

    .footer {
        flex-wrap: wrap;
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: left;
        margin-right: 0;
    }

    .footer-links {
        text-align: left;
        color: #fff;
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .footer-text {
        text-align: left;
    }

    .footer-text p {
        font-size: 1.2rem;
        line-height: 1.2rem;
    }

    .footer-text img {
        height: 2rem;
        margin-left: 1rem;
    }

    .footer-images {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .footer-images img {
        height: 5.5rem;
        margin: 0 0.5rem;
    }
}

@media screen and (max-width: 400px) {
    #logo {
        height: 70px
    }

    .footer-links {
        font-size: 1rem;
    }

    .footer-text p {
        font-size: 1.1rem;
    }
}