@charset "UTF-8";

:root {
    --color-primary: #4a90e2;
    --color-danger: #b94a48;
    --color-info: #3a87ad;
    --color-success: #468847;
    --color-secondary: #2c3e50;
    --color-warning: #ffc107;
    --color-brown: #321300;
    --color-gray-3: #333333;
    --color-gray-6: #666666;
    --color-gray-9: #999999;
    --color-text: #333;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #eeeeee;

}
.w-10  { width: 10% !important; }
.w-15  { width: 15% !important; }
.w-20  { width: 20% !important; }
.w-25  { width: 25% !important; }
.w-30  { width: 30% !important; }
.w-35  { width: 35% !important; }
.w-40  { width: 40% !important; }
.w-45  { width: 45% !important; }
.w-50  { width: 50% !important; }
.w-55  { width: 55% !important; }
.w-60  { width: 60% !important; }
.w-65  { width: 65% !important; }
.w-70  { width: 70% !important; }
.w-75  { width: 75% !important; }
.w-80  { width: 80% !important; }
.w-85  { width: 85% !important; }
.w-90  { width: 90% !important; }
.w-95  { width: 95% !important; }
.w-100 { width: 100% !important; }

.cc-text-danger    { color: var(--color-danger) !important; }
.cc-text-info      { color: var(--color-info) !important; }
.cc-text-success   { color: var(--color-success) !important; }
.cc-text-secondary { color: var(--color-secondary) !important; }
.cc-text-warning   { color: var(--color-warning) !important; }
.cc-text-brown     { color: var(--color-brown) !important; }
.cc-text-gray-3    { color: var(--color-gray-3) !important; }
.cc-text-gray-6    { color: var(--color-gray-6) !important; }
.cc-text-gray-9    { color: var(--color-gray-9) !important; }
.cc-bg-danger      { background-color: var(--color-danger) !important; }
.cc-bg-info        { background-color: var(--color-info) !important; }
.cc-bg-success     { background-color: var(--color-success) !important; }
.cc-bg-secondary   { background-color: var(--color-secondary) !important; }
.cc-bg-warning     { background-color: var(--color-warning) !important; }
.cc-bg-brown       { background-color: var(--color-brown) !important; }
.cc-bg-dark        { background: linear-gradient(#3c3c3c, #000000); }

:lang(zh-TW) {
    text-align: justify;
}
:lang(en) {
    text-align: left;
}

html {
    font-size: 1rem !important;
    word-break: break-word !important;
    @media (min-width: 768px) {
        font-size: 1.25rem !important;
    }
}

body {
    background-color: #e3e3e3;
    box-sizing: border-box;
}

nav a.navbar-brand {
    @media (max-width: 340px) {
        font-size: 1rem;
    }
}

h1 {
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center !important;
    position: relative;
    width: auto;
    margin-inline: auto;
    color: var(--color-gray-3);
    line-height: 3.2rem;
    @media (max-width: 400px) {
        font-size: 1.7rem;
        line-height: 2.4rem;
    }
}
h3 {
    /*font-weight: 300;*/
    text-align: center !important;
    letter-spacing: .05rem;
    @media (max-width: 992px) {
        /*font-weight: 400;*/
    }
}
h4 {
    text-align: left;
    @media (max-width: 768px) {
        font-size: 1.1rem !important;
    }
}
p {
    /*font-size: 1.25rem;*/
    color: var(--color-gray-6) !important;
    /*text-align: justify;*/
    letter-spacing: 1px;
    /*word-break: break-word;*/
}
div {
    box-sizing: border-box;
}
span {
    word-break: break-word;
}
a {
    text-decoration: none !important;
    word-break: break-all;
}
a:hover {
    text-decoration: underline !important;
}
.long { word-break: break-all; }
u {
    text-underline-position: under;
}
.nowrap {
    white-space: nowrap; /* 保證這一段不會被拆開 */
}
.custom-vh {
    height: calc(100vh - 190px);
}
.custom-vh-me {
    height: calc(100vh - 140px);
}
.scroller {
    scrollbar-color: #8a8a8a #ffffff00;
}
.title-note {
    position: absolute;
    top: -47px;
    left: 0;
    background-color: var(--color-warning);
    color: var(--color-brown);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 1.25rem;
    overflow: visible;
    @media (max-width: 768px) {
        top: -43px;
    }
}

.btn-outline-academic {
    color: #198754;
    border: 1px solid #198754;
    background-color: transparent;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
}
.btn-outline-academic:hover,
.btn-outline-academic:focus {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
    font-weight: 700;
}
.btn {
    border-radius: 20rem;
}
.cc-container-xxl {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}
ol {
    /*font-size: 1.25rem;*/
    list-style: none;
}
li {
    position: relative;
    color: var(--color-gray-6) !important;
    /*text-align: justify;*/
    letter-spacing: 0.5px;
    /*word-break: break-word;*/
}
.list-area > li > i {
    /* 簡化畫面所以改成 none */
    display: none;
    position: absolute;
    top: -5px;
    left: -5px;
    letter-spacing: 1px;
    line-height: 40px;
    width: 30px;
    text-align: center;
}
.list-group-horizontal > li {
    line-height: 36px;
}
.list-group-horizontal > li > i {
    margin-right: 10px;
    width: 26px;
    height: 20px;
    text-align: center;
}
.list-group-non-horizontal > li > i {
    margin-right: 10px;
    width: 26px;
    height: 20px;
    text-align: center;
}

.list-group-horizontal li:nth-child(1) { width: 200px; }
.list-group-horizontal li:nth-child(2) { width: calc(100% - 200px); }

.list-status li {
    margin-left: 12px;
    /*word-break: break-word;*/
}
.list-status li::before {
    content: counters(section, ".", upper-alpha) ". " !important;
    width:26px;
    text-align: center;
    margin-left: -26px;
}
.list-terms li {
    position: relative;
    padding-left: 40px;
}
.list-terms > li::before {
    content: counters(section, "、", cjk-ideographic) "、 " !important;
    position: absolute;
    left: 0;
}
.li-before-bigger > li::before {
    font-size: 1.25rem;
}
/* 2. 針對英文語系更改清單樣式 */
:lang(en) .list-terms > li::before {
    content: counter(section) ". " !important;
}
.btn-right {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.btn-left {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-holder::placeholder,
.input-holder::-webkit-input-placeholder {
    color: var(--color-gray-9);
    opacity: 1;
}
.input-holder:-ms-input-placeholder,
.input-holder::-moz-placeholder {
    color: var(--color-gray-9);
    opacity: 1;
}
.footer-text {
    font-size: 0.8rem !important;
}
.fa-circle-right {
    position: absolute;
    animation-name: run;
    animation-duration: .3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes run {
    0% {
        left: 0;
    }
    100% {
        left: 5px;
    }
}
/*--10月之後的更新內容--*/
#subBtn:disabled, #storeBtn:disabled {
    background-color: var(--color-gray-6);
    color: var(--color-gray-9);
    border-color: var(--color-gray-6);
}
.text-decoration-none:hover {
    text-decoration: none !important;
}
.warning-box {
    display: block;
    background-color: rgb(255, 218, 224);
    border-radius: 7.5px;
    margin-top: 9px;
    line-height: 1.25rem;
    padding: 10px 14px;
    position: relative;
    white-space: pre-line;
}
.warning-box::after {
    content: "";
    position: absolute;
    top: -9px;
    left: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 0 15px;
    border-color: transparent transparent transparent rgb(255, 218, 224);
}
.icon-settings {
    width: 24px;
    text-align: center;
}
.me-nav-tabs button {
    padding: 0;
    padding-inline: 4px;
}
.me-nav-tabs button.active {
    padding: 12px 20px 8px 12px;
}
.me-nav-tabs button span#notice-bubble {
    top: -35px;
    left: 0;
    position: absolute;
    font-size: 0.8rem;
    animation: smooth-slide .5s ease-in-out infinite alternate;
    @media (max-width: 768px) {
        /*right: -145px;*/
        font-size: 0.9rem;
    }
}
@keyframes smooth-slide {
    from {
        /* 起始位置：原點 */
        transform: translateY(0);
    }
    to {
        /* 結束位置：往右平滑移動 8px */
        transform: translateY(4px);
    }
}
.me-nav-tabs button span#notice-bubble::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10px;
    transform: rotate(0deg);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #ffc107;
    border-bottom: 0 solid transparent;
    @media (max-width: 768px) {
        /*top: 4px;*/
    }
}
.move-right {
    animation: smooth-slide .5s ease-in-out infinite alternate;
}
.my-confirm-btn {
    color: #000;
}
.my-head-center {
    text-align: center;
}
.my-text-center {
    text-align: center;
    line-height: 2rem;
    p {
        text-align: center;
    }
}
/* 申請帳號頁面-確認驗證按鈕動畫 */
#checkCode {
    transition: transform 0.3s ease;
}
/* 當加上這個 Class 時才觸發呼吸效果 */
.is-breathing {
    animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(147, 136, 75, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 8px rgba(147, 136, 75, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(147, 136, 75, 0.4);
    }
}

/* width = 320 */
@media (max-width: 320px) {
    :lang(zh-TW) {
        word-break: break-all;
    }
    p {
        letter-spacing: 0;
    }
    div.card > h1:first-of-type {
        font-size: 1.5rem;
        line-height: 2rem;
        /*span.title-note {*/
        /*    !*font-size: 1rem;*!*/
        /*    width: 100%;*/
        /*    left: 50%;*/
        /*    transform: translateX(-50%);*/
        /*    text-align: center;*/
        /*    top: -40px;*/
        /*}*/
    }
    div.card > h3:first-of-type {
        font-size: 1.25rem;
    }
    .list-area > li > i {
        display: none;
    }
    .terms .card ol li::before {
        display: none;
    }
    .terms .card ol li {
        padding-block: 8px;
        padding-inline: 0;
    }
    .terms .card ol li ol {
        padding-left: 24px;
    }
}
/* width = 370 */
@media (max-width: 370px) {
    h3 {
    font-size: 1.2rem;
    }
}
/* width = 420 */
@media (max-width: 420px) {
    div.card > h1:first-of-type {
        span.title-note {
            width: 100%;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            top: -40px;
        }
    }
    /* 更新信箱頁驗證碼與按鈕排版布局 */
    .custom-grid .col, .custom-grid .col-auto { flex: 0 0 100%; max-width: 100%; }
}

/* 使用者資訊頁 - 系統公告 - 按鈕的 Loading 設定 */
.resumed-loading { margin-bottom: 6px; }

/* width = 768 */
@media (min-width: 768px) {
    /* 大於等於 md */
    .custom-vh { height: calc(100vh - 210px); }
    .resumed-loading { margin-bottom: 7px; }
}

/* 設定 sweetAlert2 Loading 轉圈動畫顏色 */
.swal2-loader {
    border-color: var(--color-warning) transparent var(--color-warning) transparent;
}

/* --- 移除 BS5 手風琴預設效果 --- */
/* 移除展開時的藍色背景與藍色文字顏色 */
.accordion-button:not(.collapsed) {
    background-color: #ffffff; /* 改為白色 */
    color: #212529;            /* 改回一般的深色文字 (預設值) */
    box-shadow: none; /* 保留底部細線，若不需要可設為 none */
}

/* 移除點擊時出現的藍色外框 (Focus Ring) */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125); /* 保持邊框顏色 */
}

/* 標題背景網點效果 */
.manga-dots {
    /* 黑色網點，背景為白色 */
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 20%, transparent 20%);
    /* 控制網點的大小與密度（縮小數字網點會變密） */
    background-size: 12px 12px;
}

/* 標題背景網點效果 錯位 */
.pop-art-dots {
    /* 兩層漸層互相交錯 */
    background-image:
            radial-gradient(circle, rgba(0, 0, 0, 0.03) 20%, transparent 20%),
            radial-gradient(circle, rgba(0, 0, 0, 0.03) 20%, transparent 20%);
    /* 關鍵：第二層結構平移一半的 background-size */
    background-position: 0 0, 10px 10px;
    /* 控制網點密度 */
    background-size: 20px 20px;
}

/* ------- 編號清單數字標號 開始 ------- */
.custom-list {
    /* 1. 隱藏原本預設的數字 */
    list-style: none;
    /* 2. 重設並命名一個計數器，這裡命名為 my-counter */
    counter-reset: my-counter;
    padding-left: 20px;
}

.custom-list li {
    /* 3. 讓每個 <li> 依序遞增計數器 */
    counter-increment: my-counter;
    position: relative;
}

.custom-list li::before {
    /* 4. 在每個項目文字前，動態插入自訂的格式 */
    /* decimal 代表數字，如果你要英文大寫可以換成 upper-alpha */
    content: "(" counter(my-counter, decimal) "). ";

    /* 5. 調整位置（可依需求調整） */
    position: absolute;
    left: -5px;
}
/* ------- 編號清單數字標號 結束 ------- */

/* ------- 編號清單表格樣式 開始 ------- */
/* 針對你的表格套用樣式 */
.storage-table, .pricing-table {
    width: 100%;                 /* 讓表格填滿 li 的寬度 */
    border-collapse: collapse;   /* 關鍵：將雙線合併為單線 */
    margin: 12px 0;              /* 與上下文字保持一點舒適的距離 */
    font-size: 15px;
}

/* 設定表頭 (th) 和單元格 (td) 的邊框與內襯 */
.storage-table th, .storage-table td,
.pricing-table th, .pricing-table td {
    border: 1px solid #cccccc;   /* 灰色的細邊框 */
    padding: 10px 14px;          /* 字體與邊框的留白，讓表格不擁擠 */
    text-align: left;            /* 文字靠左對齊 */
}

/* 選擇性：讓表頭帶有淡淡的背景色，看起來更專業 */
.storage-table th, .pricing-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 選擇性：滑鼠懸停時顯色（提升閱讀體驗） */
.storage-table tr:hover, .pricing-table tr:hover {
    background-color: #fafafa;
}
/* ------- 編號清單表格樣式 結束 ------- */

/* 確保容器高度設定為視窗剩餘高度，這裡建議依據你的 Header 高度微調 */
/* 1. 設定容器的限制與捲軸 */
.table-responsive {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    /*border: 1px solid #dee2e6;*/
}

.table-responsive .table thead th {
    position: sticky;
    top: 0;
    background-color: #212529 !important;
    color: white;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

/* 重設密碼手風琴標題底線設定 */
.accordion-under-line {
    color: #0056b3;
    /* 預設下邊框為透明，畫出空間避免畫面跳動 */
    border-bottom: 2px solid transparent;
    display: inline-block; /* 讓寬度貼合文字，否則底線會一路延伸到最右側 */
    transition: border-color 0.3s ease; /* 加上過渡動畫，讓底線出現時更平滑 */
}
.accordion-under-line:hover {
    /* 滑鼠滑過時，讓下邊框顯現出來 */
    border-bottom: 2px solid #0056b3; /* 可以自由換成你喜歡的顏色 */
}