html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #e9e9e9; /* 看得清楚粒子 */
}

/*背景粒子*/
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
canvas {
    display: block !important;
    opacity: 1 !important;
}
.container{
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:color-mix(in srgb, var(--clb-color-black) 20%, transparent);
    padding: 0 25px;
    
}
/*標頭*/
header {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container-up {
    width: 100%;
    height: 100%;
    display: block;
    justify-content: space-between;
    background:color-mix(in srgb, var(--clb-color-black) 20%, transparent);
    align-items: center;
}
.container-head {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    background:color-mix(in srgb, var(--clb-color-black) 20%, transparent);
    align-items: center;
}
.logo{
    align-self: flex-end;
    font-weight: bold;
    font-size: 30px;
    align-items: center;
}
.logo img{
    height:45px;
    width: auto;
    justify-content: center;
}
.container-title{
    font-family: Roboto, sans-serif;
    display:block ;
    margin-top: 10%;
    align-items: center;
    z-index: 6;
}
.webname{
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    text-align: center;
    color:#ff6435;
}
.slogan{
    font-size: 40px;
    font-weight: 650;
    font-style: normal;
    text-align: center;
    margin-top:0.5%;
    color:rgb(68, 68, 68);
}
.title-gif {
    width: 18px;/* 根據需求調整大小 */
    height: auto;
    vertical-align: middle;
    margin-bottom: 5px;
}
nav{
    font-family: "DM Serif Text", serif;
    display: flex;
    gap: 15px;
    z-index: 5;
}
.navitem{
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 5;
}
.navitem a{
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}
.navitem__text {
    font-size: 18px;
    text-decoration: none;
    color: rgb(91, 91, 91);
    font-weight: 100;
    transition: color 0.3s ease; /* 平滑變色動畫 */
    z-index: 5;
}
.navitem__text:hover {
    color: #000000f0; /* 滑過時變藍色，可改其他顏色 */
}
.submenu {
    display: flex;
    position: fixed;
    top: 100%;
    left: 100%;
    min-width: 150px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;/* 文字也置中 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1); /* 半透明白色 */
    z-index: 3;
}
.submenu a {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.submenu.show{
    display: flex;
}
.submenu a:first-child {
    border-left: none;
}
.submenu a:hover {
    background: rgba(255, 255, 255, 0.75); /* 半透明白色 */
}
.submenu--right {
    min-width: 100%;
    left: 0;       /* 從最左邊展開 */
    top: 45px;     /* 跟 header 高度對齊 */
}
.submenu .back-button {
    display: none !important;
}
/* 漢堡選單按鈕 - 手機版用 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    justify-content: space-between;
    right: 20px;
    z-index: 100;
}
.hamburger div {
    height: 3px;
    border-radius: 2px;
    margin: 4px 0; /* 通常會有間距讓三條線分開 */
    background-color: #ffffff;  /* 一定要有背景色，才看得到 */
    transition: all 0.3s ease;
}
.container-mid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0);
    z-index: 5;
}
.container-left, .container-right {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    margin: 5px;
    max-width: 50%;
    z-index: 5;
}
.box {
    background: #f9f9f9;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 5;
}
.embed-container {
    position: relative;
    width: 700px;    /* 預設電腦尺寸 */
    height: 500px;   /* 預設電腦尺寸 */
    max-width: 100%; /* 不超出螢幕寬度 */
    margin: auto;
    z-index: 5;
}
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 5;
}
h2 {
    font-family: 'DM Serif Text', serif;
    font-size: 24px;
    z-index: 5;
}
p, li {
    line-height: 1.6;
    font-size: 18px;
    z-index: 5;
}
ul {
    list-style: none;
    padding-left: 0;
    z-index: 5;
}
/* 手機版樣式 */
@media (max-width: 768px) {
    header {
        justify-content: space-between; /* 左右分散 */
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .logo img {
        height: 35px; /* logo 縮小 */
    }
    .container {
        width: 100%;
        justify-content: space-between;
    }
    nav {
        display: flex;
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background-color: rgba(255, 255, 255);
        text-align: center;
        justify-content: center;
        align-items: center;
        z-index: 99;
    }
    nav.open {
        transform: translateX(0);
    }
    .hamburger {
        display: flex;
        position: relative;
        z-index: 100; /* 確保高於 nav */
    }
    .submenu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        transform: translateX(100vw);
        transition: transform 0.3s ease;
    }
    .submenu.show {
        transform: translateX(0);
    }
    .submenu .back-button {
        display: block !important;
        font-weight: bold;
        color: #555;
        align-self: flex-start; /* 靠左放（可改 center） */
    }
    .webname{
        font-size: 15px;
        font-weight: 500;
        font-style: normal;
        text-align: center;
        color:#ff6435;
    }
    .slogan{
        font-size: 30px;
        font-weight: 650;
        font-style: normal;
        text-align: center;
        margin-top:0.5%;
        color:rgb(68, 68, 68);
    }
    .embed-container {
        width: 100%;
        padding-top: 40%; /* 或調整比例 */
        position: relative;
        padding: 0;
    }
    .embed-container::before {
        content: "";
        display: block;
    }
    .embed-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }
    .embed-container {
        position: relative;
        padding: 0;
    }
    .container-left, .container-right {
        flex: none;       /* 不要讓 flex 計算寬度 */
        width: 380px;     /* 你希望的寬度 */
        max-width: 100%;  /* 不會超出畫面寬度 */
        margin: 0 auto;   /* 置中 */
    }
    h2 {
        font-size: 16px;
    }
    p, li {
        font-size: 13px;
    }
    .box {
        padding: 8px;
    }
}
@media (min-width: 1920px) {
    .card{
        max-width: 440px;
  }
}