﻿
/* 放入測試開始 */


/* 定義顏色變量，方便修改 */
:root {
    --green-primary: #76b82a; /* 您的鮮綠色 */
    --light-gray: #ccc;
    --dark-text: #333;
}

.radio-group {
    display: flex; /* 讓選項水平排列 */
    gap: 20px;
    align-items: center;
}

/* 1. 隱藏原生的 Radio Button */
input[type="radio"] {
    /* 移除瀏覽器默認的外觀 */
    appearance: none;
    -webkit-appearance: none;
    /* 隱藏但保持可訪問性 (不使用 display: none) */
    position: absolute;
    opacity: 0;
}

/* 2. 定義 Label 基礎樣式，讓它成為自定義 Radio Button 的容器 */
.radio-group label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding-left: 30px; /* 為自定義圓圈預留空間 */
    color: var(--dark-text);
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
}

    /* 3. 創建外圈 (使用 ::before 偽元素) */
    .radio-group label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 18px; /* 圓圈大小 */
        height: 18px;
        border: 2px solid var(--light-gray); /* 灰色邊框 */
        border-radius: 50%; /* 圓形 */
        background-color: #fff;
        transition: border-color 0.2s; /* 添加過渡效果，讓 hover/checked 更流暢 */
    }

    /* 4. 創建選中時的實心圓點 (使用 ::after 偽元素) */
    .radio-group label::after {
        content: '';
        position: absolute;
        left: 5px; /* 調整圓點位置 */
        top: 50%;
        transform: translateY(-50%) scale(0); /* 默認隱藏 (scale(0)) */

        width: 10px; /* 圓點大小 */
        height: 10px;
        border-radius: 50%;
        background-color: var(--green-primary); /* 您的鮮綠色 */
        transition: transform 0.2s ease-out; /* 圓點出現的動畫 */
    }

/* 5. 交互：Hover 效果 */
.radio-group input[type="radio"]:not(:checked) + label:hover::before {
    border-color: var(--green-primary); /* 滑鼠懸停時邊框變綠 */
}

/* 6. 核心：選中 (Checked) 狀態 */
input[type="radio"]:checked + label::before {
    border-color: var(--green-primary); /* 選中時邊框變綠 */
}

input[type="radio"]:checked + label::after {
    transform: translateY(-50%) scale(1); /* 選中時圓點顯示 (scale(1)) */
}

/* 7. 輔助：Focus 效果 (為了可訪問性 A11y) */
input[type="radio"]:focus + label::before {
    /* 使用 box-shadow 模擬聚焦環，不要影響佈局 */
    box-shadow: 0 0 0 3px rgba(118, 184, 42, 0.4);
}

/* 方法一：最直觀的寫法（推薦新手） */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 兩欄，等寬 */
    grid-template-rows: 30px 30px; /* 兩列，每列 200px 高 */
    gap: 5px; /* 格子間距 */

    max-width: 100%;
    margin: 10px auto;
    /*background: #f5f5f5;*/
    background: #f9e9cd;
    border-radius: 20px; /* ← 這裡改數字就決定曲度 */
    padding: 10px;
}

/* 方法二：更簡潔的寫法（一行就搞定） */
/*
                    .grid {
                      display: grid;
                      grid: repeat(2, 200px) / repeat(2, 1fr);
                      gap: 20px;
                    }
                    */

/* 方法三：正方形格子（寬高永遠相等） */
/*
                    .grid {
                      display: grid;
                      grid-template-columns: 1fr 1fr;
                      gap: 20px;
                      aspect-ratio: 1 / 1;        // 整個容器是正方形
                    }
                    */

.item {
    /*background: #4a90e2;
            color: white;
            font-size: 3rem;
            font-weight: bold;*/

    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h5 {
    /* color: #4d3900;  設置標題的字體和顏色 */
    color: #4d3900;
    font-weight: bold;
}


/* 1. 對父容器啟用 Flexbox */
.header-container {
    display: flex;
    /* [可選] 讓子元素在容器內垂直居中對齊 */
    align-items: center;
    /* [可選] 在兩個元素之間添加一些間隔 */
    gap: 15px;
}

    /* 2. (可選) 調整子元素樣式 */
    .header-container h5 {
        /* 移除瀏覽器對 h5 預設的上/下邊距，讓對齊更準確 */
        margin: 0;
        font-size: 1.2em;
        color: #333;
    }

    .header-container div {
        /* 移除瀏覽器對 div 的預設邊距 */
        margin: 0;
        font-size: 1em;
        color: #666;
    }



/* 利用 CSS class 來控制顏色，程式碼最乾淨 */
#menu-toggle.red {
    color: red;
}

#menu-toggle.blue {
    color: blue;
}

/* ====================
                   完全组件化样式
                   不包含任何 body / html 全局样式
                   仅作用于 .tab-menu-wrapper 及其子元素
                   避免影响外部页面布局
                ==================== */
/* 重置组件内部盒模型 (不影响外部) */
.tab-menu-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器 — 完全独立，不依赖外部字体/背景 */
.tab-menu-wrapper {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /*max-width: 880px;*/
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    overflow: hidden;
    /* 关键修改：移除 margin-top 等额外偏移，默认就是顶部对齐 */
    margin: 0;
}

/* Tab 头部导航栏 */
.tab-header {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    padding: 0 1.5rem;
    gap: 0.25rem;
}

/* 单个Tab按钮 */
.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #5b6e8c;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    font-family: inherit;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .tab-btn .tab-icon {
        font-size: 1.2rem;
        transition: transform 0.2s ease;
    }

    .tab-btn:hover {
        color: #1e2f41;
        background: #f8fafd;
    }

        .tab-btn:hover .tab-icon {
            transform: translateY(-1px);
        }

    .tab-btn.active {
        color: #2266dc;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background: #2266dc;
            border-radius: 3px 3px 0 0;
            animation: slideIn 0.2s ease-out;
        }

@@keyframes slideIn {
    from {
        width: 0%;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.tab-content-area {
    padding: 2rem 2rem 2.2rem;
    background: #ffffff;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.3s ease forwards;
}

    .tab-pane.active-pane {
        display: block;
    }

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pane-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #334e68;
    margin-bottom: 1.5rem;
    border-left: 3px solid #e0e7ff;
    padding-left: 1rem;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    flex: 1 1 180px;
    transition: all 0.2s;
    border: 1px solid #edf2f7;
}

    .feature-card strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: #1e3a5f;
    }

    .feature-card span {
        font-size: 0.85rem;
        color: #5a6e8a;
    }

.highlight-text {
    background: #eef3ff;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    color: #1a56db;
    font-weight: 500;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-left: 3px solid #2266dc;
}

hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #ecf3fa;
}

@@media (max-width: 640px) {
    .tab-header {
        padding: 0 0.75rem;
        justify-content: center;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .tab-content-area {
        padding: 1.5rem;
    }

    .pane-title {
        font-size: 1.4rem;
    }

    .feature-card {
        flex: 1 1 100%;
    }
}

@@media (prefers-color-scheme: dark) {
    .tab-menu-wrapper {
        background: #1e2538;
    }

    .tab-header {
        background: #1e2538;
        border-bottom-color: #2d354a;
    }

    .tab-content-area {
        background: #1e2538;
    }

    .tab-btn {
        color: #9aa9c1;
    }

        .tab-btn:hover {
            background: #2a3247;
            color: #e2e8f0;
        }

        .tab-btn.active {
            color: #6c9eff;
        }

            .tab-btn.active::after {
                background: #6c9eff;
            }

    .pane-title {
        color: #ecf3fa;
    }

    .pane-description {
        color: #b9c7dd;
        border-left-color: #2d4672;
    }

    .feature-card {
        background: #252e44;
        border-color: #323d57;
    }

        .feature-card strong {
            color: #d6e3ff;
        }

        .feature-card span {
            color: #a0b0cc;
        }

    .highlight-text {
        background: #14223c;
        color: #8bb3ff;
        border-left-color: #5f8eff;
    }

    hr {
        border-top-color: #2d3a55;
    }
}

body.no-scroll {
    overflow: hidden; /* 禁用body滾動 */
}

.image-container {
    display: flex;
    justify-content: left; /* 水平置中 */
    align-items: center; /* 垂直置中 */
}

    .image-container img {
        max-width: 100%; /* 確保圖片在響應式設計中不會超出容器 */
        border-radius: 10px; /* ← 這裡改數字就決定曲度 */
        /*box-shadow: 0 10px 30px rgba(0,0,0,0.2);
                    transition: all 0.3s;*/
        height: auto;
    }



/* 放入測試結束 */
.vertical-menu {
    width: 200px;
}

.vertical-menu a {
    background-color: #eee;
    color: black;
    display: block;
    padding: 12px;
    text-decoration: none;
}

    .vertical-menu a:hover {
        background-color: #ccc;
    }

    .vertical-menu a.active {
        background-color: #04AA6D;
        color: white;
    }

.RightSeparator {
    border-right: 2px solid gray;
}

.form-check-input {
    clear: left;
}

.form-switch.form-switch-xl {
    /* margin-bottom: 2rem; */
    margin-left: 2rem;
}

    .form-switch.form-switch-xl .form-check-input {
        height: 2.5rem;
        width: calc(4rem + 0.75rem);
        border-radius: 5rem;
    }

.input-pos {
    margin-left: 2rem;
}

input[type=radio] {
    transform: scale(1.2);
}

hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}


.btn3d {
    position: relative;
    top: -6px;
    border: 0;
    transition: all 40ms linear;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 2px;
    margin-right: 2px;
    width: 100%;
}

.btn3d:active:focus,
.btn3d:focus:hover,
.btn3d:focus {
    -moz-outline-style: none;
    outline: medium none;
}

.btn3d:active,
.btn3d.active {
    top: 2px;
}


.btn3d.btn-primary {
    box-shadow: 0 0 0 1px #417fbd inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #4D5BBE, 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #4274D7;
}

    .btn3d.btn-primary:active,
    .btn3d.btn-primary.active {
        box-shadow: 0 0 0 1px #417fbd inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3);
        background-color: #4274D7;
    }

.btn3d.btn-success {
    box-shadow: 0 0 0 1px #31c300 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #5eb924, 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #78d739;
}

    .btn3d.btn-success:active,
    .btn3d.btn-success.active {
        box-shadow: 0 0 0 1px #30cd00 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3);
        background-color: #78d739;
    }



.btn3d.btn-info {
    box-shadow: 0 0 0 1px #00a5c3 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #348FD2, 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #39B3D7;
}

    .btn3d.btn-info:active,
    .btn3d.btn-info.active {
        box-shadow: 0 0 0 1px #00a5c3 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3);
        background-color: #39B3D7;
    }

.btn3d.btn-warning {
    box-shadow: 0 0 0 1px #d79a47 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #D79A34, 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #FEAF20;
}

    .btn3d.btn-warning:active,
    .btn3d.btn-warning.active {
        box-shadow: 0 0 0 1px #d79a47 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3);
        background-color: #FEAF20;
    }

.row, .col-lg-6 {
    padding: 0;
    margin: 0;
}

.child {
    background-color: white;
}

.parent {
    background-color: #F3F4F5;
}

li.dropdown-submenu:hover ul {
    display: block;
    left: 100%;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu:hover .dropdown-menu {
        top: 0;
    }

#bg {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}

#bg_youtube {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}

#bg_youtubeedit {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}


#bg_getpic {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}

#bg_getpicedit {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}





#bgPickImg {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
}



.numberCircle {
    font-family: "OpenSans-Semibold", Arial, "Helvetica Neue", Helvetica, sans-serif;
    display: inline-block;
    color: #fff;
    text-align: center;
    line-height: 0px;
    border-radius: 50%;
    font-size: 12px;
    min-width: 38px;
    min-height: 38px;
}

    .numberCircle span {
        display: inline-block;
        padding-top: 50%;
        padding-bottom: 50%;
        margin-left: 1px;
        margin-right: 1px;
    }

/* Some Back Ground Colors */
.clrGreen {
    background: #51a529;
}

.clrRose {
    background: #e6568b;
}

.clrOrange {
    background: #ec8234;
}

.clrBlueciel {
    background: #21adfc;
}

.clrMauve {
    background: #7b5d99;
}

#alertBox {
    margin: 200px auto 0;
    text-align: center;
    padding-top: 25px;
    width: 300px;
    height: 385px;
    background: #FFF;
    border-radius: 3px;
    box-shadow: 2px 2px rgba(0, 0, 0, .3);
    z-index: 999;
}

#alertBox p {
    font-size: 1.4em;
    margin-bottom: 20px;
}

#alertBox #ok {
    padding: 5px 20px;
    font-size: 1em;
}


#alertBoxGetPic {
    margin: 200px auto 0;
    text-align: center;
    padding-top: 25px;
    width: 300px;
    height: 385px;
    background: #FFF;
    border-radius: 3px;
    box-shadow: 2px 2px rgba(0, 0, 0, .3);
    z-index: 999;
}

    #alertBoxGetPic p {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    #alertBoxGetPic #ok {
        padding: 5px 20px;
        font-size: 1em;
    }






#alertBoxYoutube {
    margin: 200px auto 0;
    text-align: center;
    padding-top: 25px;
    width: 400px;
    height: 555px;
    background: #FFF;
    border-radius: 3px;
    box-shadow: 2px 2px rgba(0, 0, 0, .3);
    z-index: 999;
}

    #alertBoxYoutube p {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    #alertBoxYoutube #ok {
        padding: 5px 20px;
        font-size: 1em;
    }

.list-group {
    max-height: 300px;
    margin-bottom: 10px;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

.carousel-inner {
    padding: 1em;
}

.card {
    margin: 0 0.5em;
    box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
    border: none;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: #e1e1e1;
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

@@media (min-width: 768px) {
    .carousel-item {
        margin-right: 0;
        flex: 0 0 33.333333%;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

.card .img-wrapper {
    max-width: 100%;
    height: 13em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card img {
    max-height: 100%;
}

@@media (max-width: 767px) {
    .card .img-wrapper {
        height: 17em;
    }
}

.setting-transparent {
    opacity: 0.2;
}

.grid-container {
    display: grid;
    grid-template-columns: auto;
    /*  grid-template-rows: 2fr 2fr 2fr 1fr 2fr 2fr;*/
    grid-template-rows: 80px;
    gap: 3px;
    background-color: #cecece;
    /*padding: 3px;*/
}

.grid-container > div {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px black;
    text-align: left;
    font-size: 20px;
}

.catsandstars {
    background-image: url("../img/d1.jpg");
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.img-box {
    margin: 10px;
    display: inline-block;
    position: relative;
}

.myimage {
    width: 120px;
    height: 120px;
}

.del-icon {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid red;
    border-radius: 50%;
    top: -13px;
    right: -15px;
    transform: rotate(45deg);
}

    .del-icon::before {
        display: block;
        position: absolute;
        content: "";
        width: 10px;
        height: 2px;
        background-color: red;
        top: 50%;
        left: 50%;
        transform: translate3d(-50%, -50%, 0);
    }

    .del-icon::after {
        display: block;
        position: absolute;
        content: "";
        width: 2px;
        height: 10px;
        background-color: red;
        top: 50%;
        left: 50%;
        transform: translate3d(-50%, -50%, 0);
    }

.outside {
    display: flex;
    align-items: center;
    justify-content: center;
}

.MyMouse {
    cursor: pointer;
}

div.scroll {
    margin: 4px, 4px;
    padding: 4px;
    background-color: white;
    /*width: 500px;*/
    height: 250px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: justify;
}


div.scrollxy {
    margin: 4px, 4px;
    padding: 4px;
    background-color: white;
    /*width: 250px;*/
    height: 250px;
    overflow-x: scroll;
    overflow-y: scroll;
    text-align: justify;
}




.scrollex {
    margin: 4px, 4px;
    padding: 4px;
    background-color: white;
    /*width: 500px;*/
    height: 30px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: justify;
}





.popupdialog {
    width: 220px;
    height: 50px;
    border-radius: 20px;
    background: #454545;
    font-size: 16px;
    font-family: 'Global Monospace';
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    position: fixed;
    left: calc(50% - 110px);
    top: calc(50% - 25px);
    color: #fff;
}


