/*Import Font From Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/*Reset Stylesheet*/
*{
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    font-family: "Noto Sans TC", sans-serif;
}

body {
    position: relative;
    background-image: url(image/bac\ 4.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-color: rgb(0, 0, 0);
    min-width: 100vw;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent 50%, rgb(246, 228, 147, 0.05));
}

/*Background Images Setup*/
.content picture {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0%;
}

.content img:not(.logo-container, .logo, .logo-blur, .speaker) {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0%;
}

.back-1, .back-1blur, .back-2, .back-2blur {
    mix-blend-mode: lighten;
}


/*Logo Images Setup*/
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20vh auto 10vh auto;
    width: 100vw;
    height: auto;
}

.logo {
    position: absolute;
    width: 20vw;
    height: auto;
    max-width: 20vw;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.logo-blur {
    position: absolute;
    width: 20vw;
    height: auto;
    max-width: 20vw;
    z-index: 1;
    opacity: 0.25;
    filter: blur(8px);
    pointer-events: none;
}

/*Header Setup*/
header {
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Nav Bar Setup*/
nav {
    display: flex;
    gap: 5vw;
    padding: 0px 5vw;
    background-color: rgba(178, 189, 219, 0.4);
    height: 50px;
    border-bottom-left-radius: 0.75vw;
    border-bottom-right-radius: 0.75vw;
    backdrop-filter: blur(64px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

nav a {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    color: rgb(44, 44, 44);
    width: 110px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.6);
    padding: 7px 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.active {
    background-color: rgb(27, 88, 123, 0.75);
    color: white;
}

nav a:hover {
    background-color: rgb(27, 88, 123, 0.75);
    color: white;
}

nav:hover > a:not(:hover) {
    background-color: transparent;
    color: rgb(53, 53, 53);
}

/*Nav Bar Change When In English*/
nav {
    gap: 1vw;
}

html[lang="en"] nav a {
    width: 150px;
}

/*Title Setup*/
.title {
    position: absolute;
    top: 37.5%;
    right: 50%;
    transform: translate(50%, -50%);
}

.title h1 {
    font-size: 11.5rem;
    font-weight: 800;
    letter-spacing: 40px;
    text-transform: uppercase;
    color: white;
    text-align: center;
    margin: -15px 0;
}

.title h3 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 15px;
    color: white;
    text-align: center;
}

/*Intro Setup*/
.intro-info {
    background-color: rgba(168, 168, 168, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(64px);
    margin: 13.5vh auto 0vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.intro-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.intro-info h3 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: auto;
}

.intro-info p {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: auto;
    padding: 2vw;
}

/*Intro Change When In English*/
html[lang="en"] .intro-info h3 {
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
    }

html[lang="en"] .intro-info p {
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
}

/*News Info Setup*/

.news-info {
    background-color: rgba(168, 168, 168, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1vw;
    width: 55vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(64px);
    margin: 10vh auto 3vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.news-block-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1vw;
    row-gap: 0.2rem;
    width: 100%;
    justify-content: center;
}

.news-block {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 10vw;
    position: relative;
}

.large-news-block {
    display: flex;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: calc(5 * 10vw + 4 * 1vw);
    margin-top: 0.5vh; 
}

.news-text {
    font-size: 105%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    align-self: flex-start;
    margin: 10px 0px 0px 10px;
    width: auto;
}

.news-date {
    font-size: 100%;
    font-weight: 450;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(194, 194, 194);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    align-self: center;
    margin:  0px 0px 0px 10px;
    width: auto;
}

.large-news-text {
    font-size: 1.5rem;
    font-weight: 480;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
    margin: 10px;
    align-self: center;
    width: auto;
}

html[lang="en"] .news-text {
    margin-top: 10px;
    line-height: 1.2;
    text-transform: uppercase;
}

/*Agenda Info Setup*/
.agenda-info {
    background-color: rgba(168, 168, 168, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(64px);
    margin: 10vh auto 5vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.agenda-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.agenda-content {
    width: 100%;
    width: 100%;
    border-radius: 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
}

.agenda-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    border-style: hidden;
}

.agenda-main-title {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    border: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    font-size: 125%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
}

.agenda-table th, .agenda-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 115%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    vertical-align: middle;
    text-align: center;
    padding: 15px 15px 15px 20px;
}

.agenda-table th {
    text-align: center;
    vertical-align: middle;
}

/*Lecture Info Setup*/

.lecture-info {
    background-color: rgba(168, 168, 168, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(64px);
    margin: 10vh auto 5vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.lecture-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.lecture-block img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    max-width: 100%;
    margin: 20px;
    position: static;
}

.lecture-info p1, .lecture-info p2, .lecture-info p3 {
    text-align: left;
    width: auto;
}

.lecture-info p1, .lecture-info p2, .lecture-info p3, .lecture-info p4 {
    display: block;
    margin: 0.1%;
    margin-right: 1vw;
}

.lecture-info p1 {
    font-size: 175%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 2.0;
    color: rgb(164, 222, 255);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
}

.lecture-info p2 {
    font-size: 145%;
    font-weight: 475;
    letter-spacing: 0.2px;
    line-height: 1.85;
    color: rgb(255, 255, 255);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
}

.lecture-info p3 {
    font-size: 135%;
    font-weight: 425;
    letter-spacing: 0.2px;
    line-height: 1.75;
    color: rgb(244, 253, 157);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
}

.lecture-info p4 {
    font-size: 105%;
    font-weight: 375;
    letter-spacing: 0.2px;
    line-height: 1.65;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 1vh;
}

/* Submission Setup */
.submission-info {
    background-color: rgba(168, 168, 168, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(64px);
    margin: 10vh auto 5vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.submission-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.submission-content p1 {
    font-size: 150%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    align-self: flex-start;
    margin:  10px 0px 0px 0px;
    width: auto;
}

.submission-content p2 {
    white-space: pre-wrap;
    font-size: 135%;
    font-weight: 450;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(194, 194, 194);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    align-self: flex-start;
    margin:  0px 0px 0px 10px;
    width: auto;
}

html[lang="en"] .submission-content p1 {
    text-transform: uppercase;
}

/*Coming_Soon Info Setup*/
.coming-info {
    background-color: rgba(141, 141, 141, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(32px);
    margin: 0vh auto 5vh auto; /* adjust third value can set footer location */
    display: flex;
    flex-direction: column;
}

.coming-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.coming-info p1 {
    font-size: 450%;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: rgb(212, 212, 212);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    text-align: left;
    width: auto;
}

/*Call To Action Setup*/
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 5%;
}

.fpage, .tinfo{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 15vh;
    gap: 5%;
    padding-bottom: 2vh; /* adjust third value can set footer location */
}

.registration {
    padding-bottom: 5vh;
}

.format,.form {
    padding-bottom: 5vh; /* adjust third value can set footer location */
}

.cta {
    position: relative;
    bottom: auto;
    display: flex;
    justify-content: center;
    width: 200px;
    z-index: 1;
    text-decoration: none;
}

.cta button {
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(32px);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    height: 50px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.cta button:hover{
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(53, 53, 53);
}

/*Cta Button Change When In English*/
html[lang="en"] .cta {
    width: 300px;
}

html[lang="en"] .cta button {
    letter-spacing: 1px;
    width: 300px;
}

html[lang="en"] .button-container {
    gap: 3%;
}

html[lang="en"] .registration {
    padding-bottom: 0.5%; /* adjust third value can set footer location */
}

/*Bio Language Switch Botton Setup*/

.lang {
    position: absolute;
    bottom: 15%;
    display: flex;
    justify-content: center;
    z-index: 1;
    text-decoration: none;
}

.lang button {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    height: 50px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    cursor: pointer;
}

.lang button:hover{
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(53, 53, 53);
}

.switcher {
    position: absolute;
    Top: 5%;
    right: 2.5%;
    gap: 15px;
}

/*Language Button Status Setup*/
html[lang="zh"] .zh-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: rgb(53, 53, 53);
}

html[lang="en"] .eh-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: rgb(53, 53, 53);
}

/*Footer Setup*/
.site-footer {
    position: relative;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    padding: auto;
    z-index: 1;
}

.footer-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-image {
    width: 75px;
    height: auto;
}

.footer-text {
    font-size: 100%;
    font-weight: 300;
    color: rgb(204, 204, 204);
    line-height: 1.6;
}

/*Animation Setup*/
@keyframes bottomIn {
    from {
        transform: translateY(200px);
    }
    to {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.back-1 {
    opacity: 0;
    animation:fadeIn 1s ease-out forwards;
}

.back-2{
    opacity: 0;
    animation: fadeIn 1.3s ease-out forwards;
}

.back-1blur {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards, blurInOutSpot 2.5s ease-in-out infinite;
}

.back-2blur {
    opacity: 0;
    animation: fadeIn 1.3s ease-out forwards, blurInOutSpot 2.5s ease-in-out infinite;
}

.site-footer {
    animation: bottomIn 1.8s ease-out forwards;
}

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

.lecture-block {
    animation: bottomInText 1s ease-out forwards;
}

.lecture-info {
    animation: bottomInText 1.3s ease-out forwards;
}

.news-info {
    animation: bottomInText 1s ease-out forwards;
}

.news-block-container {
    animation: bottomInText 1.2s ease-out forwards;
}

.large-news-block {
    animation: bottomInText 1.4s ease-out forwards;
}

.agenda-info {
    animation: bottomInText 1s ease-out forwards;
}

.agenda-block {
    animation: bottomInText 1.2s ease-out forwards;
}

.submission-info {
    animation: bottomInText 1.2s ease-out forwards;
}

.submission-block {
    animation: bottomInText 1.4s ease-out forwards;
}

.title h1 {
   animation: bottomInText 1s ease-out forwards;
}

.title h3 {
    animation: bottomInText 1.2s ease-out forwards;
}

.intro-info {
    animation: bottomInText 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.intro-content h3 {
    animation: bottomInText 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.intro-content p {
    animation: bottomInText 1.4s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.coming-info {
    animation: bottomInText 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.cta button {
    animation: bottomInText 1.2s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes backgroundImage {
    from {
        background-position: top;
    }
    to {
        background-position: 50% 15%;
    }
}

body {
    animation: backgroundImage 1.6s ease-out forwards;
}

@keyframes headerIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

nav {
    animation: headerIn 1.2s ease-out forwards;
}


@keyframes switcherIn {
    from {
        transform: translateY(-15%);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

.switcher {
    animation: switcherIn 1.2s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes blurInOutSpot {
    0% {
        filter: blur(12px);
        opacity: 1;
    }
    50% {
        filter: blur(2px);
        opacity: 0.5;
    }
    100% {
        filter: blur(12px);
        opacity: 1;
    }
}

/* Added media query - mobile version (max-width: 768px) */
@media (max-width: 768px) {
    body {
        background-image: url(image/mobile-bac-4.png); 
        min-width: 100vw;
        background-size: cover;
    }

    .logo {
    width: 50vw;
    height: auto;
    max-width: 50vw;
    }


    .logo-blur {
    width: 50vw;
    height: auto;
    max-width: 50vw;
    }

    .back-1 {
        opacity: 0;
        animation: none;
    }

    .back-2{
        opacity: 0;
        animation: none;
    }

    .back-1blur {
        opacity: 0;
        animation: none;
    }

    .back-2blur {
        opacity: 0;
        animation: none;
    }


    nav {
        flex-direction: row; 
        height: auto;
        width: 90vw;
        gap: 10px;
        padding: 10px;
    }

    nav a {
        border-radius: 0.5vh;
        width: 100%;
        font-size: 2.5vw;
        padding: 0.6vw 0.2vw;
    }

    html[lang="en"] nav a {
        width: 100%;
    }

    .title h1 {
        font-size: 4rem;
        letter-spacing: 10px;
    }

    .title h3 {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .intro-info h3 {
        font-size: 1.5rem;
    }

    .intro-info p {
        font-size: 1rem;
    }

    html[lang="en"] .intro {
        font-size: 80%;
        padding: 10px;
        margin: 5vw 50vh 0vh 1.5vh;
    }

    .intro-info {
        width: 90%;;
    }

    .intro-info-block {
        width: 100%;
    }

    .news-info, .agenda-info, .lecture-info, .submission-info {
        width: 94%;
        margin: 15vh auto;
        padding: 10px;
    }

    .news-block-container {
        flex-direction: column;
    }

    .news-block {
        width: 100%;
    }

    .large-news-block {
        width: 100%;
    }

    .large-news-text {
        font-size: 200%;
    }

    .agenda-block {
        flex-direction: column;
    }

    .agenda-info p1 {
        font-size: 200%;
    }

    html[lang="en"] .lecture-info {
        width: 90%;
    }

    .lecture-block {
        align-items: center;
    }

    .lecture-block img {
        width: 20vw;
        height: auto;
        border-radius: 1.5rem;
        margin: 1vw;
        min-width: 20vw;
        position: static;
    }

    .lecture-info p1 {
        font-size: 155%;
    }

    .lecture-info p2 {
        font-size: 125%;
    }

    .lecture-info p3 {
        font-size: 105%;
    }

    .lecture-info p4 {
        font-size: 95%;
    }

    html[lang="en"] .lecture-block {
        align-items: center;
    }

    .lecture-block img {
        width: 100%;
    }

    .submission-block {
        align-items: center;
    }

    .submission-info {
        width: 90%;
    }

    .button-container {
        flex-direction: row;
        gap: 1vh;
    }

    .cta {
        position: relative;
        bottom: auto;
        display: flex;
        justify-content: center;
        width: 100%;
        z-index: 1;
        text-decoration: none;
    }

    .cta button {
        width: 80%;
        font-size: 14px;
    }

    .fpage, .tinfo{
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-top: 5vh;
        padding-bottom: 2vh; /* adjust value can set footer location */
    }

    html[lang="en"] .fpage, .tinfo{
        margin-top: 5vh;
    }

    html[lang="en"] .cta button {
        width: 100%;
    }

    .lang {
        bottom: 5%;
        flex-direction: row;
        gap: 10px;
    }

    .lang button {
        backdrop-filter: blur(5px);
        margin-top: 3vh;
        font-size: 12px;
        height: 45px;
        width: 75px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-text {
        font-size: 90%;
    }

}

/* =========================================================
   2027 Theme Color Overrides
   主題色：Cobalt Blue / Neon Green / Magenta / Charcoal
   只覆蓋顏色，不改原本版面、尺寸與動畫。
   ========================================================= */

:root {
    --theme-blue: #0058D8;
    --theme-green: #68E828;
    --theme-magenta: #F000D8;
    --theme-bg: rgba(12, 13, 18, 0.76);
    --theme-bg-soft: rgba(18, 19, 26, 0.66);
    --theme-text: #F1F4F8;
    --theme-text-secondary: #C5CBD5;
    --theme-border: rgba(0, 88, 216, 0.42);
}

body::after {
    background:
        linear-gradient(
            180deg,
            rgba(0, 88, 216, 0.025) 0%,
            rgba(240, 0, 216, 0.035) 58%,
            rgba(104, 232, 40, 0.035) 100%
        );
}

nav {
    background-color: rgba(8, 10, 16, 0.82);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

nav a {
    color: var(--theme-text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

.active,
nav a:hover {
    background-color: rgba(0, 88, 216, 0.92);
    color: #FFFFFF;
}

nav:hover > a:not(:hover) {
    color: rgba(241, 244, 248, 0.72);
}

.intro-info,
.news-info,
.agenda-info,
.lecture-info,
.submission-info,
.coming-info {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.58);
}

.intro-block,
.news-block,
.large-news-block,
.agenda-block,
.lecture-block,
.submission-block,
.coming-block {
    background-color: rgba(10, 11, 16, 0.30);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.intro-info p,
.news-text,
.large-news-text,
.agenda-main-title,
.agenda-table th,
.agenda-table td,
.lecture-info p4,
.submission-content p1,
.coming-info p1 {
    color: var(--theme-text);
}

.news-date,
.submission-content p2,
.footer-text {
    color: var(--theme-text-secondary);
}

.intro-info h3,
.agenda-main-title {
    color: var(--theme-green);
}

.news-date {
    color: #FF61E9;
}

.agenda-content {
    border-color: rgba(0, 88, 216, 0.42);
}

.agenda-main-title {
    border-bottom-color: rgba(104, 232, 40, 0.36);
    background-color: rgba(0, 88, 216, 0.18);
}

.agenda-table th,
.agenda-table td {
    border-color: rgba(0, 88, 216, 0.28);
}

.agenda-table th {
    background-color: rgba(0, 88, 216, 0.44);
    color: #FFFFFF;
}

.agenda-table td {
    background-color: rgba(8, 9, 14, 0.24);
}

.lecture-info p1 {
    color: #63A6FF;
}

.lecture-info p2 {
    color: #FFFFFF;
}

.lecture-info p3 {
    color: var(--theme-green);
}

.lecture-info p4 {
    color: #DCE1E8;
}

.cta button {
    color: #FFFFFF;
    background-color: rgba(0, 88, 216, 0.16);
    border-color: rgba(104, 232, 40, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 88, 216, 0.12);
}

.cta button:hover {
    background-color: var(--theme-green);
    border-color: var(--theme-green);
    color: #07234A;
    text-shadow: none;
}

.lang button {
    color: #FFFFFF;
    background-color: rgba(8, 10, 16, 0.62);
    border-color: rgba(0, 88, 216, 0.78);
}

.lang button:hover {
    background-color: var(--theme-green);
    border-color: var(--theme-green);
    color: #07234A;
}

html[lang="zh"] .zh-btn,
html[lang="en"] .eh-btn {
    background-color: rgba(0, 88, 216, 0.92);
    border-color: #63A6FF;
    color: #FFFFFF;
}

.site-footer {
    background-color: rgba(0, 0, 0, 0.18);
}

.footer-text {
    color: #CDD3DC;
}

/* Desktop background fix */
@media (min-width: 769px) {
    body {
        background-attachment: fixed;
    }
}

/* Sticky Footer Fix */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 10px;
}

/* =========================================================
   Lecture layout fix
   防止「待公告」被 flex 壓縮成兩行。
   ========================================================= */
.lecture-content {
    flex: 1;
    min-width: 0;
}

.lecture-info p1 {
    white-space: nowrap;
}

/* News Section Title */
.news-section-title {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.5;
    color: var(--theme-text);
    text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Footer sponsor line temporarily hidden; keep HTML / language key for future use. */
[data-lang-key="content.footer_donation"] {
    display: none;
}

/* Logo 光暈呼吸時間設定：只控制 logo-blur.png 的光暈，不影響清楚的 Logo */
:root {
    --logo-glow-transition-time: 1s; /* 光暈增強與減弱各需要的時間，共用此變數 */
    --logo-glow-hold-time: 0.2s;      /* 光暈達到最強後維持的時間 */
}

/* =========================================================
   Submission inline links
   ========================================================= */
.submission-content a {
    color: #63A6FF;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.submission-content a:hover {
    color: var(--theme-green);
}

/* =========================================================
   Lecture Mobile Layout Fix
   修正手機版圖片被 width:100% 撐滿、姓名 nowrap 溢出等問題。
   桌機版不受影響。
   ========================================================= */
@media (max-width: 768px) {
    .lecture-info,
    html[lang="en"] .lecture-info {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12vh auto 5vh auto;
        padding: 12px;
        box-sizing: border-box;
    }

    .lecture-block,
    html[lang="en"] .lecture-block {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px;
        margin-bottom: 16px;
    }

    .lecture-block img,
    .lecture-block img.speaker {
        display: block;
        width: min(44vw, 180px) !important;
        min-width: 0 !important;
        max-width: 180px !important;
        height: auto;
        margin: 0 auto 6px auto;
        border-radius: 12px;
        position: static;
        align-self: center;
    }

    .lecture-content {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .lecture-info p1,
    .lecture-info p2,
    .lecture-info p3,
    .lecture-info p4 {
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 8px 0;
        padding: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .lecture-info p1 {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    .lecture-info p2 {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .lecture-info p3 {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-top: 8px;
    }

    .lecture-info p4 {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}


/* 2027: Decorative page overlay must never intercept clicks on content links. */
body::after { pointer-events: none; }
.submission-info, .submission-block, .submission-content { position: relative; }
.submission-info { z-index: 2; }
.submission-content a { position: relative; z-index: 1; pointer-events: auto; cursor: pointer; }

/* =========================================================
   2027 Lecture layer fix only
   Ensure decorative overlay stays behind page content.
   ========================================================= */
body::after {
    z-index: 0;
}

header,
.content,
.site-footer {
    position: relative;
    z-index: 1;
}

/* 首頁活動簡介：僅內文左右對齊，最後一行靠左，標題保持置中。 */
.intro-content > p[data-lang-key="content.intro"] {
    text-align: justify;
    text-justify: inter-ideograph;
    text-align-last: left;
}

/* 專題講座：兩位講者卡片間距 50px（桌機與手機共用） */
.lecture-info > .lecture-block:not(:last-child) {
    margin-bottom: 50px;
}

/* 專題講座桌機版：照片頂端與姓名頂端對齊，手機版維持原排版。 */
@media (min-width: 769px) {
    .lecture-block {
        align-items: flex-start;
    }
    .lecture-block img.speaker {
        margin-top: 14px; /* 照片下移，與講者姓名的文字頂端對齊 */
    }
}


/* 專題講座手機版：照片、姓名與職稱置中；介紹與講題維持靠左。 */
@media (max-width: 768px) {
    .lecture-block img.speaker {
        margin-bottom: 12px;
    }

    .lecture-content > p1,
    .lecture-content > p2 {
        text-align: center;
    }
}


/* 手機版：語言按鈕緊接上方導覽列右下方。
   header 位於 .content 前面，使用 content 頂端作為導覽列底部基準。 */
@media (max-width: 768px) {
    .content > .switcher {
        top: calc(2vw - 5px); /* 與上方導覽列保留適當間距，避免按鈕重疊 */
        right: 12px;
        bottom: auto;
    }

    .content > .switcher button {
        margin-top: 0;
    }
}

/* 手機版：講座與投稿頁背景固定於可視畫面，捲動時僅內容移動。 */
@media (max-width: 768px) {
    body:has(.lecture-info),
    body:has(.submission-info) {
        background-image: none; /* 避免 body 的長頁背景與固定背景重疊 */
        animation: none; /* 避免背景位移動畫干擾 */
    }

    body:has(.lecture-info)::before,
    body:has(.submission-info)::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url('image/mobile-bac-4.png');
        background-position: center top;
        background-size: cover; /* 依手機畫面填滿，不隨頁面高度縮放 */
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 0;
    }
}

/* 手機版頁尾：Logo 置中，四個單位文字整組置中且左對齊 */
@media (max-width: 768px) {
    .footer-container {
        align-items: center;
    }

    .footer-container > .footer-text {
        box-sizing: border-box;
        width: 100%;
        max-width: 320px;
        text-align: left;
    }
}

/* 手機版最新消息：頁尾緊接內容，避免卡片下方保留 15vh 空白。 */
@media (max-width: 768px) {
    body:has(.news-info) .news-info {
        margin-bottom: 16px;
    }

    body:has(.news-info) > .content {
        flex: 0 0 auto;
    }

    body:has(.news-info) > .site-footer {
        margin-top: 0;
    }
}


/* 手機版首頁：縮短 Logo、活動簡介與下方按鈕的垂直間距 */
@media (max-width: 768px) {
    body:has(.intro-info) .logo-container {
        margin-top: 15vh;
    }

    body:has(.intro-info) .intro-info {
        margin-top: 9vh;
    }

    body:has(.intro-info) .fpage,
    body:has(.intro-info) .tinfo {
        margin-top: 2vh;
    }
}
