@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Noto+Sans+TC:wght@100..900&display=swap');

* {
    box-sizing: border-box;
}

#mainBlock {
    font-family: "Noto Serif TC", serif !important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #000;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    font-size: 1rem;
}

#mainBlock header {
    width: 100%;
    background: url(../../../images/zh_TW/1st/index_bg.jpg)#ffffff top center no-repeat;
    background-size: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    aspect-ratio: 19/10;
}

/* 手機選單 */
.navigation__checkbox {
    display: none;
}

.navigation__button {
    position: fixed;
    top: 52px;
    right: 2vw;
    height: 12vw;
    /* 相對螢幕寬度縮放 */
    width: 12vw;
    max-height: 60px;
    /* 設上限，避免桌機太大 */
    max-width: 60px;
    text-align: center;
    background-color: #000000;
    border-radius: 50%;
    z-index: 300;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
}

.navigation__background {
    position: fixed;
    top: 2.5vw;
    right: 2.5vw;
    height: 8vw;
    width: 8vw;
    max-height: 50px;
    max-width: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    background-size: cover;
    background-position: center;
    z-index: 100;
    transition: all 800ms cubic-bezier(0.86, 0, 0.07, 1);
    display: none;
}

.navigation__nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    opacity: 0;
    width: 0;
    visibility: hidden;
    z-index: 200;
    transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navigation__list {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    list-style: none;
}

.navigation__item img {
    width: 15vw;
    /* icon 用相對單位 */
    margin-top: 1rem;
    padding: 0 1%;
}

.navigation__link:link,
.navigation__link:visited {
    display: inline-block;
    padding: 2vw 4vw;
    text-transform: uppercase;
    color: #1f1f1f;
    font-size: 8vw;
    /* 用 vw 縮放 */
    line-height: 16vw;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: bold;
}

.navigation__link:hover {
    color: #8d4f1c;
    transform: scale(1.1);
}

.navigation__checkbox:checked~.navigation__background {
    transform: scale(60);
}

.navigation__checkbox:checked~.navigation__nav {
    width: 100%;
    visibility: visible;
    opacity: 1;
}

/* ===== 漢堡 icon (三條線) ===== */
.navigation__icon {
    position: relative;
    display: block;
    width: 60%;
    /* 三條線長度固定為按鈕寬度的 60% */
    height: 2px;
    background-color: #ffffff;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.navigation__icon::before,
.navigation__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    /* 與主線同長 */
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.navigation__icon::before {
    top: -8px;
    /* 上線 */
}

.navigation__icon::after {
    top: 8px;
    /* 下線 */
}

/* Hover 輕微效果 */
.navigation__button:hover .navigation__icon::before {
    top: -10px;
}

.navigation__button:hover .navigation__icon::after {
    top: 10px;
}

/* 切換成叉叉 */
.navigation__checkbox:checked+.navigation__button .navigation__icon {
    background-color: transparent;
}

.navigation__checkbox:checked+.navigation__button .navigation__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navigation__checkbox:checked+.navigation__button .navigation__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 手機menu結束 */
.pc_nav {
    width: 100%;
    padding: 0 1%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 999;
}

.pc_nav a {
    text-decoration: none;
    color: #1c1c1c;
}

.pc_nav ul {
    display: flex;
    margin: 0;
    padding-right: 10px;
    list-style: none;
}

.logo {
    width: 140px;
}

.logo img {
    width: 100%
}

.pc_nav span {
    display: block;
}

.pc_nav li {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 3% 10px;
    white-space: nowrap;
    cursor: pointer;
    color: #1c1c1c;
    transition: background-color 0.3s ease;
}

.pc_nav li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #5997cb;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.pc_nav li:hover {
    background: #e7f7ff;
}

.pc_nav li:hover::after {
    width: 100%;
}

.pc_nav li:hover .nav_b {
    color: #598686;
    transition: all 0.2s;
}

.nav_b {
    font-weight: 800;
    font-size: 1.2em;
}

.nav_s {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    line-height: 3em;
}

.pc_nav_right {
    display: flex;
    align-items: center;
}

/* =========================
   LANGUAGE SELECT
========================= */
.language-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 99;
}

.language-select_m {
    position: absolute;
    display: none;
    padding: 10px 14px;
    margin-top: 2%;
    left: 2%;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
    z-index: 99;
}

/* 地球圖示 */
.language-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../../images/zh_TW/1st/icon_language.png)center center no-repeat;
    background-size: 100%;
    margin-right: 3px;
}

/* Select */
.language-select select,
.language-select_m select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 18px 0 0;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* 自製下拉箭頭 */
.language-select::after,
.language-select_m::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid #777;
    border-bottom: 1px solid #777;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* Hover */
.language-select:hover,
.language-select_m:hover {
    border-color: #bbb;
    background: #fafafa;
}

/* =========================
   OPTION
========================= */
.language-select option,
.language-select_m option {
    background: #fff;
    color: #333;
}

/* 選取 / 滑過的反白顏色 */
.language-select option:checked,
.language-select_m option:checked {
    background: #e9e9e9;
    color: #333;
}

.index_block {
    width: 35%;
    max-width: 600px;
    position: relative;
    left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.index_logo {
    width: 80%;
}

.slogan {
    width: 85%;
    padding: 2% 0;
    z-index: 5;
}

.index_download_block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 86%;
}

.index_download_block a img {
    width: 98%;
    margin: 0 1%;
    transition: .2s all;
}

.index_download_block a img:hover {
    transition: .2s all;
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* =========================
   右側社群
========================= */
.side-social {
    position: fixed;
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1em;
    padding: 0.8%;
}

.side-social img {
    margin: 2%;
}

/* 社群連結 */
.side-social a {
    display: block;
    line-height: 0;
}

/* 社群圖片 */
.side-social img {
    display: block;
    width: 50px;
    height: auto;
    transition: transform 0.25s ease;
}

/* =========================
   音樂按鈕
========================= */
.music-btn {
    position: fixed;
    right: 1%;
    bottom: 20px;
    width: 60px;
    height: 60px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 9999;
}

/* 音樂圖片 */
.music-btn img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
}

.news {
    width: 100%;
    background: url(../../../images/zh_TW/1st/news_bg.jpg)#ffffff top center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3% 0;
}

#mainBlock h1 {
    display: inline-block;
    border-left: #c8a76f 5px solid;
    padding-left: 1%;
    margin-bottom: 2%;
    font-size: 16px !important;
}

.title_sub {
    color: #c8a76f;
    font-weight: 400;
    font-size: 1em;
    display: block;
    margin: 5% 0;
}

.title {
    color: #242424;
    font-weight: 600;
    font-size: 3em;
    display: block;
    margin: 5% 0;
}

.title_2 {
    color: #ffffff;
    font-weight: 600;
    font-size: 3em;
    display: block;
    margin: 5% 0;
}

.news_in,
.special_in {
    width: 70%;
}

.news_in,
.special_in,
.world-inner,
.char_in {
    width: 58%;
}

.news_block {
    padding: 5%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

/* ========================================
   NEWS AREA
======================================== */
.news-area {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        sans-serif;
    color: #444;
}

/* ========================================
   TAB
======================================== */
.news-tabs {
    display: flex;
    align-items: flex-end;
    height: 52px;
    border-bottom: 1px solid rgba(90, 110, 120, .25);
}

.news-tab {
    position: relative;
    height: 52px;
    padding: 0 5%;
    border: 0;
    background: transparent;
    color: #999;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease;
}

/* TAB 底線 */
.news-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 3px;
    background: #397b7b;
    transform: translateX(-50%);
    transition: width .25s ease;
}

/* hover */
.news-tab:hover {
    color: #397b7b;
}

.news-tab:hover::after {
    width: 100%;
}

/* active */
.news-tab.active {
    color: #333;
}

.news-tab.active::after {
    width: 100%;
}

/* ========================================
   NEWS LIST
======================================== */
.news-list {
    /* 固定五筆的高度 */
    height: 380px;
    overflow: hidden;
    position: relative;
    /* 切換時淡入淡出 */
    opacity: 1;
    transition: opacity .25s ease;
}

/* 切換中的狀態 */
.news-list.is-changing {
    opacity: 0;
}

/* ========================================
   NEWS ITEM
======================================== */
.news-item {
    display: grid;
    grid-template-columns:
        105px 82px 1fr;
    align-items: center;
    height: 76px;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(100, 100, 100, .15);
    color: #444;
    text-decoration: none;
    /* 不要位移動畫 */
    transition:
        background-color .2s ease,
        color .2s ease;
}

/* ========================================
   DATE
======================================== */
.news-item time {
    color: #aaa;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2em;
}

/* ========================================
   CATEGORY
======================================== */
.news-category {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 25px;
    border-radius: 7px;
    color: #fff;
    font-size: 1em;
    font-weight: 700;
}

/* 活動 */
.news-category.event {
    background: #397b7b;
}

/* 維護 */
.news-category.notice {
    background: #d65760;
}

/* 公告 */
.news-category.announcement {
    background: #70b1eb;
}

/* ========================================
   TITLE
======================================== */
.news-title {
    padding-left: 15px;
    color: #3f3f3f;
    font-size: 1em;
    font-weight: 700;
    /* 單行 */
    white-space: nowrap;
    /* 超出隱藏 */
    overflow: hidden;
    /* 顯示 ... */
    text-overflow: ellipsis;
    /* 讓 Grid 子項可以正確縮小 */
    min-width: 0;
    transition: color .2s ease;
}

/* ========================================
   HOVER
   只保留很淡的效果
======================================== */
.news-item:hover {
    background: rgba(220, 240, 249, .65);
}

.news-item:hover .news-title {
    color: #397b7b;
}

/* ========================================
   PAGINATION
======================================== */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding-top: 26px;
}

/* ========================================
   PAGE NUMBERS
======================================== */
.page-numbers {
    display: flex;
    align-items: center;
    margin: 0 1%;
    gap: 2px;
}

.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    font-family: Arial, sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition:
        color .2s ease,
        background-color .2s ease;
}

.page-number:hover {
    color: #397b7b;
}

.page-number.active {
    background: #397b7b;
    color: #fff;
}

/* ========================================
   ARROW
======================================== */
.page-arrow {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.page-arrow img {
    width: 100%;
}

.page-arrow:hover {
    transition: color .2s ease;
}

.special {
    width: 100%;
    background: url(../../../images/zh_TW/1st/special_bg.jpg)#000000 top center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2% 0;
}

/* ========================================
   UPDATE SECTION
======================================== */
.update-section {
    width: min(100%, 1100px);
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========================================
   TOP TABS
======================================== */
.update-tabs {
    display: flex;
    margin-bottom: 14px;
    width: 100%;
}

/* 按鈕 */
.update-tab {
    position: relative;
    padding: 0.5% 2%;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .5);
    margin: 0 0.5%;
    background:
        linear-gradient(180deg,
        rgba(70, 70, 70, .95),
        rgba(15, 15, 15, .95));
    color: #fff;
    font-size: 1em;
    font-weight: 200;
    cursor: pointer;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .2s ease;
}

.world-menu-item {
    position: relative;
    padding: 1% 2%;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .5);
    margin: 0 0.2%;
    background:
        linear-gradient(180deg,
        rgba(70, 70, 70, .95),
        rgba(15, 15, 15, .95));
    color: #fff;
    font-size: 1em;
    font-weight: 200;
    cursor: pointer;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .2s ease;
}

/* 滑鼠移入 */
.update-tab:hover,
.world-menu-item:hover {
    background:
        linear-gradient(180deg,
        rgba(100, 100, 100, .95),
        rgba(25, 25, 25, .95));
}

/* 選取 */
.update-tab.active,
.world-menu-item.active {
    background:
        linear-gradient(180deg,
        #28646a,
        #153c40);
    border-color: #8fc9cc;
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, .15),
        0 0 8px rgba(120, 210, 215, .25);
}

/* ========================================
   SLIDER
======================================== */
.update-slider {
    width: 100%;
    overflow: hidden;
    background: #111;
    position: relative;
}

/* 圖片橫向軌道 */
.update-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition:
        transform .8s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

/* 每一張圖片 */
.update-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #111;
}

/* 圖片 */
.update-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   SLIDER
======================================== */
.update-slider {
    width: 100%;
    overflow: hidden;
    background: #111;
    position: relative;
}

/* 圖片橫向軌道 */
.update-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition:
        transform .8s cubic-bezier(.65, 0, .35, 1);
    will-change: transform;
}

/* 每一張圖片 */
.update-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #111;
}

/* 圖片 */
.update-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   CAPTION
======================================== */
.update-caption {
    padding: 10px 0 0;
    /*
     * 讓文字區高度固定
     * 避免切換時下面版面上下跳動
     */
    min-height: 95px;
    overflow: hidden;
}

/* 標題 */
.update-title,
.world-title {
    margin: 0 0 5px;
    font-family:
        "Noto Serif TC",
        "Noto Serif CJK TC",
        serif;
    font-size: 1.6em;
    font-weight: 500;
    color: #d8c18b;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

/* 說明 */
.update-text,
.world-text {
    margin: 0;
    font-family: "Noto Sans TC", serif;
    color: #fff;
    font-size: 1em;
    line-height: 1.7;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .35s ease,
        transform .35s ease;
    white-space: pre-line;
}

/* ========================================
   文字淡出狀態
======================================== */
.update-caption.is-changing .update-title,
.update-caption.is-changing .update-text {
    opacity: 0;
    transform: translateY(8px);
}

/* ========================================
   WORLD
======================================== */
.world-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #101410;
}

/* ========================================
   BACKGROUND
======================================== */
.world-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.world-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*
     * 避免背景太搶
     */
    filter:
        brightness(.4) saturate(.8);
    opacity: 1;
    transition:
        opacity .8s ease;
    will-change: opacity;
}

/* 背景淡出狀態 */
.world-bg.is-changing .world-bg-image {
    opacity: 0;
}

/* ========================================
   CONTENT
======================================== */
.world-inner {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 3% 0;
}

/* ========================================
   MENU
======================================== */
.world-menu {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

/* ========================================
   MENU WINDOW
======================================== */
.world-menu-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* ========================================
   MENU TRACK
======================================== */
.world-menu-track {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    /*
     * Menu 本身可以橫向移動
     * 但不是圖片動畫
     */
    transition:
        transform .4s ease;
}

/* ========================================
   MENU ARROW
======================================== */
.world-menu-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition:
        background .25s ease,
        opacity .25s ease;
}

.world-menu img {
    width: 100%;
}

.world-menu-arrow:hover {
    transition:
        background .25s ease,
        opacity .25s ease;
}

/* 左右箭頭 */
.world-menu-prev {
    margin-right: 5px;
}

.world-menu-next {
    margin-left: 5px;
}

/* ========================================
   MAP
======================================== */
.world-map {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    /*
     * 固定比例
     * 防止圖片切換時高度跳動
     */
    overflow: hidden;
}

/*
 * 所有地圖疊在同一個位置
 */
.world-map-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition:
        opacity .8s ease;
    pointer-events: none;
}

/* 目前圖片 */
.world-map-image.active {
    opacity: 1;
    z-index: 2;
}

/* ========================================
   CAPTION
======================================== */
.world-caption {
    padding-top: 10px;
    min-height: 100px;
    overflow: hidden;
}

/* ========================================
   TEXT CHANGE
======================================== */
.world-caption.is-changing .world-title,
.world-caption.is-changing .world-text {
    opacity: 0;
    transform: translateY(8px);
}

.char {
    width: 100%;
    background: url(../../../images/zh_TW/1st/char_bg.jpg)top center no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3% 0;
}

.character-main-image-m {
    display: none;
}

/* ========================================
   CHARACTER
======================================== */
.character-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    box-sizing: border-box;
}

/* ========================================
   LEFT
======================================== */
.character-side {}

/* ========================================
   PART BUTTON
======================================== */
.character-parts {
    display: flex;
    flex-direction: column;
}

.part-btn {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5em;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-image: url("../../../images/zh_TW/1st/character_part.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
}

/* 文字 */
.part-btn span {
    color: #000;
}

/* Hover */
.part-btn:hover {
    background-image: url("../../../images/zh_TW/1st/character_part_hover.png");
}

.part-btn:hover span {
    color: #fff;
}

/* 選中 */
.part-btn.active {
    background-image: url("../../../images/zh_TW/1st/character_part_hover.png");
}

.part-btn.active span {
    color: #fff;
}

/* ========================================
   RIGHT
======================================== */
.character-main {
    flex: 1;
    min-width: 0;
}

/* ========================================
   MAIN VISUAL
======================================== */
.character-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 102 / 83;
    overflow: hidden;
}

/* ========================================
   EACH CHARACTER PAGE
======================================== */
.character-page {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .65s ease,
        visibility .65s ease;
}

.character-page img {
    width: 100%;
}

.character-page.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* ========================================
   MAIN IMAGE
======================================== */
.character-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ========================================
   CHARACTER INFO
======================================== */
.character-info {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 50%;
    box-sizing: border-box;
    font-family: "Noto Sans TC", serif;
    font-weight: 500;
    font-size: 0.8em;
}

/* ========================================
   INFO TITLE
======================================== */
.character-info h3 {
    margin: 0 0 8px;
    color: #2c6670;
    font-family:
        "Noto Serif TC",
        "Noto Serif CJK TC",
        serif;
    font-size: 3em;
    font-weight: 400;
    line-height: 1;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    /* 線條顏色 */
    text-decoration-thickness: 0.2em;
    /* 線條粗細 */
    text-underline-offset: -0.2em;
    /* 線條下移的距離 */
}

/* ========================================
   META
======================================== */
.character-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.character-meta span {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    padding: 0 5px;
}

.character-meta .position {
    color: #fff;
    background: #515656;
    box-shadow: #acabab 2px 2px 2px;
    margin-right: 0.5em;
    height: 40px;
}

.character-meta .type {
    color: #1b1b1b;
    background: #fff;
    margin-left: 5px;
    padding-right: 10px;
}

.character-meta .type img {
    height: 30px;
}

.character-meta .cv {
    color: #fff;
    background: #515656;
    box-shadow: #acabab 2px 2px 2px;
    height: 40px;
}

.character-meta .cast_name {
    color: #1b1b1b;
    background: #fff;
    margin-left: 5px;
    height: 30px;
}

/* ========================================
   DESCRIPTION
======================================== */
.character-info p {
    margin: 0;
    color: #555;
    display: block;
    background: rgba(255, 255, 255, 0.8);
    line-height: 1.4em;
    border-radius: 10px;
    padding: 1em;
}

/* ========================================
   CHARACTER LIST
======================================== */
.character-list-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.character-list {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 570px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.character-list::-webkit-scrollbar {
    display: none;
}

/* ========================================
   THUMB
======================================== */
.character-thumb {
    position: relative;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    background: #ddd;
    overflow: hidden;
    cursor: pointer;
}

.character-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: .75;
    transition:
        filter .4s ease,
        opacity .4s ease;
}

/* Hover → 彩色 */
.character-thumb:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Active → 彩色 */
.character-thumb.active {
    border-color: #527f7b;
}

.character-thumb.active img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   ARROW
======================================== */
.character-arrow {
    flex: 0 0 25px;
    width: 25px;
    height: 55px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #718184;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition:
        color .25s ease;
}

.character-arrow img {
    width: 100%;
}

/* ========================================
   角色選單
======================================== */
.character-list-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

/* 目前部別的角色選單 */
.character-list-wrap.active {
    display: flex;
}

/* 每一組角色列表 */
.character-list {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 570px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.character-list::-webkit-scrollbar {
    display: none;
}