@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap');

@font-face {
    font-family: "Rounded";
    src: url('/file/fonts/rounded.woff2') format('woff2'),
         url('/file/fonts/rounded.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
}

* {
    transition: background-color .3s ease, color .3s ease;
}

:root {
    --bg-color: white; 
    --text-color: black; 
    --header-bg: #ececec; 
    --menu-bg: #dbdbdb; 
    --vision-bg: #ffc052; 
    --vision-h1-ab: #ffeccc; 
    --vision-h2: #936d2c; 
    --block-title: #ffaf24; 
    --logo-url: url("file/logo/TVN_full.svg"); 
}

.dark-mode {
    --bg-color: #18191b; 
    --text-color: white; 
    --header-bg: #353535;
    --menu-bg: #474747; 
    --vision-bg: #2d2d2d; 
    --vision-h1-ab: #b0b0b0; 
    --vision-h2: white; 
    --block-title: white;
    --logo-url: url("file/logo/TVN_full_dark.svg")
}

.visible {
    opacity: 1; /* 完全可見 */
}

.menuOn .menuBtn {
    position: absolute;
    right: 0;
}

.menuOn .home {
    transform: translateX(calc(50vw - 50%))
}

.menuCtd {
    top: 90px !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: calc(100vh - 90px);
    margin: 0;
    padding: 90px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    display: none;
}

.home {
    height: 100%;
    max-width: 250px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, left 0.4s ease;
}

.headerLogo {
    /* height: 100%; */
    width: 100%;
    content: var(--logo-url);
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
    left: 10px;
}

header nav {
    height: 100%;
    margin-right: 50px;
}

header ul {
    list-style-type: none;
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
}

header ul a {
    text-decoration: none;
    height: 100%;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header ul a:hover li{
    color: #ffc052;
}

header li {
    color: var(--text-color);
    font-weight: 500;
    font-size: 22px;
    font-family: "Rounded";
}

.menuBtn {
    width: 45px;
    min-width: 40px;
    height: auto;
    margin-right: 5vw;
    display: none;
    stroke: var(--text-color);
}

.menu {
    position: fixed;
    width: 100%;
    min-height: 90px;
    top: calc(var(--menu-height) * -1 + 90px);
    background-color: var(--menu-bg);
    transition: top .4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%; 
    width: 100%;
    margin: 0;
    padding: 0;
}

.menu ul a {
    text-decoration: none;
    height: 100%;
    width: calc(100% / 7 - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.menu ul a:hover li{
    color: #ffc052;
}

.menu li {
    color: var(--text-color);
    font-weight: 500;
    font-size: 22px;
    font-family: "Rounded";
}

.themeToggle {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
}

.vision {
    min-width: 50%;
    width: auto;
    height: auto;
    background-color: var(--vision-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    margin: 100px 10% 100px;
    border-radius: 12px;
    font-family: "Noto Sans TC";
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.vision h1 {
    margin: 0;
    color: white;
    text-align: center;
}

.vision h1::before {
    content: "「";
    position: relative;
    right: 25px;
    top: -10px;
    font-size: 20px;
    color: var(--vision-h1-ab);
}

.vision h1::after {
    content: "」";
    position: relative;
    left: 25px;
    bottom: -10px;
    font-size: 20px;
    color: var(--vision-h1-ab);
}

.vision ol {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0 40px;
}

.vision li {
    transition: none;
}

.vision a {
    text-decoration: none;
    color: white;
    margin-bottom: 30px;
    font-size: 23px;
    transition: color .2s; 
    font-weight: 500;
}

.vision a:hover {
    color: #ffeccc;
}

.vision hr {
    background-color: white;
    height: 2px;
    width: 95%;
    border: none;
}

.vision div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 70px 0 15px;
    position: relative;
    padding-bottom: 70px;
}

.vision p {
    color: var(--vision-h2);
    position: absolute;
    right: 10px;
    bottom: 0;
    font-size: 19px;
    font-family: "Noto Serif TC";
    opacity: .6;
    font-weight: 700;
}

.vision h2 {
    color: var(--vision-h2);
    margin: 0;
    text-align: center;
    font-size: 25px;
    font-family: "Noto Serif TC";
    font-weight: 500;
}

.vision h2::before {
    content: "\"";
    position: relative;
    bottom: 5px;
    right: 20px;
    font-size: 20px;
    color: var(--vision-h2);
    opacity: .5;
}

.vision h2::after {
    content: "\"";
    position: relative;
    bottom: 5px;
    left: 20px;
    font-size: 20px;
    color: var(--vision-h2);
    opacity: .5;
}

.separator {
    height: .1px;
    border: none;
    background-color: var(--text-color);
    width: 80%;
}

.blockTitle {
    color: var(--block-title);
    /* font-size: ; */
}

.block {
    margin-top: 50px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 950px) {
    header nav {
        display: none;
    }

    .menuBtn {
        display: block;
    }
}

@media (max-width: 450px) {
    .menu ul a{
        width: 50px;
    }

    .headerLogo {
        left: 0;
    }
}