:root{
    --text-dark:#000;
    --text-light:rgb(250, 246, 246);

    --background-color:#f5f3f2;
    --background-nav-color:rgba(116, 116, 116, 0.575);

    --text-link:rgb(0, 0, 0);
    --text-link-activate:#ef7f19;
    --text-link-hover:#000;
    --text-dark:#000;
    --border:var(--text-dark);
    --menu-background:#d6c2c2;

    --calendar-switch-btn:#f8d7da;
    --calendar-cell:#000000;
    --botton_hover:rgb(218, 218, 218);
    --fa-line:rgb(27, 163, 61);
    --fa-envelope:rgb(201, 81, 81);
    --form-background:#e0f0bc;
    --form-background-box:#000000;
    --home-slider:#f5f5f5;
    --do-not-a:#610088;

    

    --ckeditor-marker:#f0f07d;
}

:root.dark-mode{
    --text-dark:rgb(255, 255, 255);
    --text-light:rgb(250, 246, 246);

    --background-color:rgb(0, 0, 0);
    --background-nav-color:rgba(116, 116, 116, 0.575);

    --text-link:rgb(255, 255, 255);
    --text-link-activate:#d67bf1;
    --text-link-hover:rgb(255, 255, 255);
    --border:var#ffffff;
    --menu-background:#d5ebbb;


    --calendar-switch-btn:#664f4f;
    --calendar-cell:#e6f704;
    --botton_hover:rgb(43, 43, 43);
    --fa-line:rgb(68, 204, 102);
    --fa-envelope:rgb(201, 81, 81);
    --form-background:#000000;
    --form-background-box:#e0f0bc;
    --home-slider:#050101;

    --ckeditor-marker:#164bc7;
    --do-not-a:#f4ec63;
    
}



body{
    background:var(--background-color);
}

 
.main{
    padding-top:80px ;
}



.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px var(--form-background-box);
}


.header-main{
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    margin :0 auto
}

.nav-title{
    padding-left: 20px;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.nav-logo-word{
    margin-left: 10px;
    font-size: 36px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-logo{
    width: 80px;
    height: 80px;
}
.nav-logo-word{
    color: var(--text-dark);
}

.nav-change{
    width: 20px;
    height: 20px;
    margin-left: 10px;
    z-index: 10;
}

.nav-change-bigscreen{
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}


.nav-container{    
    width: 100%;
}



.nav{
    height: 80px;
    width: 100%;
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



.nav__icon{
    width: 20px;
    height: 20px;
}

.nav__link--activate{
    text-decoration: none;
    color: var(--text-link-activate);
    font-size: 18px;

}


.nav__link{
    text-decoration: none;
    color: var(--text-link);

    animation: animate__fadeInDown ; /* 引用動畫的 @keyframe 名稱 */
    animation-duration: 2s; /* 別忘了設定持續時間 */
}

.nav__link :hover{
    color: var(--text-link-hover);
    transition : 0.3s;
    border-width: 2px;
    background: var(--botton_hover);
}

.nav__item{
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 24px;
}


.nav-bar-start{
    width: 50px;
}


.nav-bar-exit{
    width: 50px;
}

.member_avatar {
    width: 40px;
    height: 40px;
    background-color: #4285f4;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
}


.member_icon {
    width: 40px;

}


label{
    display: none;
}

#check {
    z-index: 3;
    display: none;
}

footer {
    width: 100%;
    background-color: var(--background-color);
    /* border-top: 2px solid var(--text-dark); */
    padding: 20px 0;
    margin-top: 40px;
}

.footer-area {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.footer-visiter{
    display: flex;
    align-items: center;
    color: var(--text-dark);
}
 

.footer-link-item {
    padding: 10px;
    font-size: 24px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.footer-link-item:hover {
    color: #ff6600; /* hover 顏色可自訂 */
}

.footer-describe {
    font-size: 0.85rem;
    color:var(--text-dark);
    line-height: 1.4;
}


.fa-line {
    color:var(--fa-line) ;
}

.fa-envelope{
    color: var(--fa-envelope);
}

.menu_btn {
    display: none;
}

.member_menu_content{
    display: block;         /* 讓 a 成為區塊，填滿 li */
    width: 100%;            /* 寬度填滿 li */
    height: 100%;           /* 高度填滿 li */

    box-sizing: border-box; /* 防止 padding 破版 */
    text-decoration: none;
    color: #000;
}


.exit {
    display: none; /* 預設不顯示，在手機版 nav.show 時才顯示 */
    position: fixed;  /* 讓它固定在畫面右上 */
    top: 20px;
    right: 20px;
    font-size: 25px;
    color: var(--text-dark);
    z-index: 1001;  /* 要比 .nav 高，避免被蓋住 */
    cursor: pointer;
}



.menu_btn:hover{
    color: var(--text-link-hover);
}


.menu_title{
    display: none
}



.fa-moon{
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 0, 0.877)
}

.fa-seedling{
    width: 15px;
    height: 15px;
    color: rgb(87, 204, 71);
}

.flash{
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin :10px
}

.member {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    margin-top: 20px;
}

.member_toggle {
    display: flex;
    flex-direction: row;
    padding: 5px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    font-size: 20px;
    color: var(--text-dark);
}

.member_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 45px; /* 放在 toggle 下方 */
    left: -100px;
    width: 150px;
    z-index: 100;
    backdrop-filter: blur(5px);
    background-color: rgba(102, 64, 64, 0.2);  /* 半透明背景 */
    backdrop-filter: blur(5px);                /* 模糊濾鏡 */
    -webkit-backdrop-filter: blur(10px);        /* Safari 支援 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);       /* 陰影效果 */
    border-radius: 8px

}

.member_menu_items {
    display: inherit;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    background: var(--menu-background);
    opacity: 0.5;
}


.member_menu_items:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.member_menu_items:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.member_menu_items:hover {
    background-color: #eee;
}


.member_username{
    padding-left: 10px;
}



@media (max-width :1100px){
    header{
        align-items: center;
    }

    header .nav{
        display: none;
    }

    .nav {
        display: none; /* default hidden */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--background-color);
        position: fixed;     /* Cover entire screen */
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 999;
    }

    .nav.show {
        display: flex;
    
        animation: fadeIn 0.3s ease forwards;
    }


    .nav.show ~ .exit {
        display: block;
    }

    .nav__link{
        margin-top: 20px;

    }

    .nav__link--activate{
        margin-top: 20px;
    }

    .nav-container{
        width: 100%;
    }


    .nav-change-bigscreen{
        display: block;
    }
    .member{
        width: 100px;
    }

    .member_menu{
        left: -110px;
    }
    .menu_btn{
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: var(--text-dark);
        padding: 10px;
    }


    .menu_title{
        display: flex;
        justify-content: center;
        padding-top: 30px;
        color: var(--text-dark);
    }

    

    .exit {
        display: block;
        font-size: 25px;
        color: var(--text-dark);
    }


    #check:checked ~ header{
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #check:checked ~ header .nav{
        z-index: 2;
        position: absolute;
        background: var(--background-color);
        top: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #check:checked ~ header .nav__link--activate{
        font-size: 30px;
        margin-bottom: 30px;
        animation: fadeIn linear 1s;
    }

    #check:checked ~ header .nav__link{
        font-size: 30px;
        margin-bottom: 30px;
        animation: fadeIn linear 0.5s;

    }

    #check:checked ~ header .nav-title{
        display: none;
    }

    #check:checked ~ header label .menu-btn{
        display: none;
    }

    #check:checked ~ main{
        display: none;
    }

    #check:checked ~ header .close-btn{
        color: var(--text-dark);
        display: flex;
        position: sticky;
        z-index: 3;
        align-items:flex-end
    }

    #check:checked ~ header .exit{
        animation: fadeIn linear 0.5s;
    }

    #check:checked ~ header .close-btn:hover{
        color: var(--text-link-hover);
    }

}

@media (max-width:600px){
    .header{
        width: 100%;
    }

    .header-main{
        padding: 0;
    }

    .nav-container{
        width: auto;
    }
    .nav-change{
        display: none;
    }

    .menu_btn {
        padding: 5px;
    }

    .footer-link {
        margin: 20px;
        flex-wrap: wrap;
    }

    .footer-describe {
        margin: 2px 0;
    }

    .nav-logo-word{
        font-size: 16px;
    }


    .nav-logo{
        width: 70px;
        height: 70px;
    }

    .nav-logo-word{
        font-size: 28px;
    }

    .nav-title{
        width: 300px;
        height: 75px;
        padding: 0;
    }

    .footer-describe{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .menu_title{
        display: flex;
        justify-content: center;
        padding: 0 auto;
        color: var(--text-dark);
    }

    .member{
        width: 40px;
        right: 20px;
    }

    .member_avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }


    .member_toggle{
        padding: 0;
        padding-bottom: 15px;
    }

    .member_menu{
        top: 40px;
        left: -100px;
        
    }



    .member_username{
        display: none;
    }

    
    
}
    

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);}
    }

    .note_table {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 10px;
    }

@media (max-width: 992px) {
    .note_table {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .note_table {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .note_table {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 分頁樣式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.page_links {
    display: inline-block;
}

.page_link, .current_page {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.current_page {
    background-color: #007bff;
    color: #fff;
}