

/***************************************************************************
*  註解規則 :                                                              *
*  15顆星* --> 大區塊 (Container / left-part / right-part 等等)            *
*  5顆星* --> 小區塊 (大區塊內的各項小區塊功能)                            *
*  1顆星*  --> 功能註解                                                    *
*                                                                          *
*  File : Data_home_Re.css                                                 *
*  Used in : Data_home.cshtml / Application_Tools.cshtml                   *
*  Author: Eunha                                                           *
*  Creater : 2026 - 08 - 05                                                *
*  Description : GHD Data home page Layout Redesign                        *
***************************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=delete,download,format_list_bulleted,grid_view,info,search,tune');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=check,database');

/***** Inter（自架，取代 Google Fonts CDN） *****/
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/font-style/Inter/Inter-latin.woff2) format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/font-style/Inter/Inter-latin.woff2) format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/font-style/Inter/Inter-latin.woff2) format('woff2');
}

/*************** 外層Container設定 ***************/

body {
    background-color: #FFFFFF;
}

.body.container {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 20px 40px;
    font-family: "inter","Noto Sans TC",sans-serif;
}

.flex_direction_column {
    display: flex;
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
    gap: 40px;
}

.paddingleft_right {
    width: 100%;
}

/*************** data-left-part ***************/
.data-left-part {
    display: flex;
    width: 400px;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid #D7D7D7;
    background: #FFF;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
}

/***** datasets-search *****/
.datasets-search {
    display: flex;
    padding: 0 0 20px 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    align-self: stretch;
}

.user-guide-layout {
    display: flex;
    height: 40px;
    padding: 0 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid #D7D7D7;
    background: #F1EEFC;
    color: #4E37A8;
}

    .user-guide-layout:hover,
    .user-guide-layout:visited,
    .user-guide-layout:visited:hover,
    .user-guide-layout:active {
        color: #4E37A8 !important;
    }

.user-guide-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px;
    line-height: 1;
    vertical-align: -4px;
    color: #4E37A8;
}

.search-bar-input {
    display: flex;
    height: 40px;
    padding: 0 10px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid #D7D7D7;
    background: #FFF;
}

.search-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px;
    line-height: 1;
    color: #6B6B6B;
}

.placeholder-text {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

#search-input-span {
    width: 100%;
    height: 100%;
}

/***** datasets-filter *****/
.datasets-filter {
    align-self: stretch;
    padding: 0 0 20px 0;
    margin: 0;
    border-bottom: 1px solid #D7D7D7;
    font-size: 16px;
}

.question-para {
    font-size: 16px;
    white-space: nowrap;
    max-width: none;
}

.filter-apply-and-clearall .clearAll a {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #C9BFEC;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 14px;
    color: #5E42C4;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
}

    .filter-apply-and-clearall .clearAll a:hover {
        background: #F1EEFC;
        border-color: #6D4FD6;
        color: #5E42C4;
    }

.clear-all-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

.datasets-filter .row {
    margin-left: 0;
    margin-right: 0;
}

.filter-apply-and-clearall {
    width: 100%;
    font-size: 16px;
    padding: 0;
}

.filter-apply {
    display: flex;
    align-items: center;
}

.filter-btn {
    padding: 20px 0 0 0;
    gap: 5px;
}

.each-filter {
    margin: 0 0 5px 0;
}

.datasets-tag {
    color: #C372FD;
    font-size: 16px;
    letter-spacing: 0.05rem;
}

/***** 下拉式篩選器Style調整 *****/
.node-wrapper {
    padding: 20px 0 20px 0;
    font-size: 16px !important;
    box-shadow: none;
    border-bottom: 1px solid #D7D7D7;
    margin: 0;
    width: 360px;
}

.node-title span {
    margin: 0;
}

.node-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
}

    .node-header .Content_Icon {
        width: 24px;
        height: 24px;
        background-image: url('../img/data_home_re/arrow_down.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

        .node-header .Content_Icon i {
            visibility: hidden;
        }

        .node-header .Content_Icon.active-down {
            transform: rotate(180deg);
        }

.node-item {
    position: relative;
    z-index: 1;
    padding: 5px 0;
    border-radius: 5px;
    width: 100%;
}

    .node-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0;
        background-color: #D7D7D7;
        border-radius: 5px;
        transition: width 0.3s ease;
        z-index: -1;
    }

    .node-item:has(.sub-content-icon.sub-active-down)::before {
        width: 100%;
    }

    .node-item .sub-content-icon {
        width: 18px;
        height: 18px;
        background-image: url('../img/data_home_re/add.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: none;
    }

        .node-item .sub-content-icon i {
            visibility: hidden;
        }

        .node-item .sub-content-icon.sub-active-down {
            background-image: url('../img/data_home_re/remove.svg');
            transform: none;
        }

.node-header .node-title {
    align-self: flex-end;
    gap: 5px;
}

.node-item .node-title {
    gap: 5px;
}

.node-single-group {
    padding-left: 35px;
}

.node-checkbox-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 12px 0 35px;
    margin: 20px 0;
    max-height: 320px;
    scrollbar-gutter: stable;
}

.node-subItem {
    position: relative;
    padding: 0;
    margin-right: 15px;
}

    .node-subItem:first-child {
        padding: 0;
    }

    .node-subItem::before {
        content: "";
        position: absolute;
        top: 0;
        left: calc(-10px - 2px);
        width: 2px;
        height: calc(100% + 20px);
        background: #000;
    }

    .node-subItem:first-child::before {
        border-radius: 999px 999px 0 0;
    }

    .node-subItem:last-child::before {
        height: 100%;
        border-radius: 0 0 999px 999px;
    }

    .node-subItem .css-item2 {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 0 0 0 5px;
        font-size: 16px;
        letter-spacing: 0.05rem;
    }

        .node-subItem .css-item2 .ui-Checkbox-label {
            flex: 1;
            min-width: 0;
        }

        .node-subItem .css-item2::before {
            position: static;
            order: 1;
            flex-shrink: 0;
            border-color: transparent;
        }

        .node-subItem .css-item2 input + .ui-Checkbox-label::after {
            content: "check";
            font-family: 'Material Symbols Outlined';
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            top: 0;
            left: auto;
            right: 0;
            width: 20px;
            height: 20px;
            box-sizing: border-box;
            border: 1px solid #000000;
            color: transparent;
            font-size: 14px;
            line-height: 1;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .node-subItem .css-item2 input:checked + .ui-Checkbox-label::after {
            color: #fff;
            background: #9747FF;
            border-color: #9747FF;
        }

.cohort_and_wizard {
    padding: 0;
}

.wizard-button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background-color: #9747FF;
    font-size: 16px;
    letter-spacing: 0.05rem;
}

.cohort-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: 2px solid #9747FF;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #9747FF;
    font-size: 16px;
    letter-spacing: 0.1rem;
    font-weight: 400;
    text-align: center;
}

.cohort {
    margin: 20px 0 0 0;
}

.wizard {
    margin: 20px 0 0 0;
}

.data-card-body.row > * {
    padding-left: 0;
    padding-right: 0;
}

.Datahome_searchTool {
    padding: 0;
}

/*************** data-right-part ***************/
.data-right-part {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    flex: 1 0 0;
    min-width: 0;
}

/***** nav *****/
.datasets-bar .nav {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0;
    border-bottom: 1px solid #D7D7D7;
}

#nav-tab.nav {
    user-select: none;
    -webkit-user-select: none;
}

.nav-link {
    padding: 0;
}

.datasets-bar .nav-link.active {
    height: 100%;
}

@media (min-width: 992px) {
    .datasets-bar .nav {
        position: relative;
    }

    .nav-indicator {
        position: absolute;
        bottom: -1px;
        height: 5px;
        background-color: #9747FF;
        transition: left 0.3s ease, width 0.3s ease;
    }
}

/***** dataset-toolbar-row *****/
.dataset-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin: 40px 0 20px 0;
    user-select: none;
    -webkit-user-select: none;
}

.dataset-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.result-count-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 45px;
    padding: 0 30px;
    border-radius: 999px;
    background-color: #D7D7D74D;
}

.result-count-icon.material-symbols-outlined {
    font-family: 'Material Symbols Outlined'; /* 沒有這行套用不到剛 import 進來的字型 */
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    color: #000000;
}

.border-size-count-result {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.show-reault-count {
    padding: 0;
    letter-spacing: 0;
    color: #000000;
    justify-items: center;
    align-items: center;
}

.show-reault-count-number {
    color: #9747FF;
    font-weight: 900;
    letter-spacing: 0.05rem;
}

.dataset-page-size-control {
    gap: 10px;
    font-size: 16px;
}

.dataset-view-actions {
    gap: 20px;
}

.dataset-view-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
}

.view-btn-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    color: inherit;
}

.dataset-column-setting-btn {
    background: #9747FF;
    border-color: #9747FF;
    box-shadow: none;
}

    .dataset-column-setting-btn:hover {
        background: #7D1CFF;
        border-color: #7D1CFF;
        color: #ffffff;
        transform: none;
    }

.column-setting-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

.dataset-page-size-select {
    font-size: 16px;
}

.dataset-download-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    background: transparent;
    border: 1px solid #C9BFEC;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: normal;
    color: #5E42C4;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

    .dataset-download-btn:hover:not(:disabled) {
        background: #F1EEFC;
        border-color: #6D4FD6;
    }

    .dataset-download-btn i {
        color: inherit;
    }

.download-icon.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

/***** data-card-box *****/
.data-each-card {
    display: block;
    padding: 40px;
    border: none;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.border-size {
    position: relative;
    box-shadow: none;
    padding: 0;
    margin: 40px 0;
    transition: background-color 0.15s ease;
}

    .border-size:first-child {
        margin-top: 0;
    }

    .border-size::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -20px;
        height: 1px;
        background-color: #D7D7D7;
    }

    .border-size:hover {
        background-color: #F7F2FF;
        border-radius: 20px;
    }

    .border-size:active {
        background-color: #E8D7FF;
        border-radius: 20px;
    }

.data-title {
    padding: 0;
    font-weight: 700;
    color: #1E1E1E;
    font-family: "Inter", 'Noto Sans TC', sans-serif;
}

.lang-zh .data-title {
    font-size: 24px;
}

.lang-en .data-title {
    font-size: 28px;
}

.data-title::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 7px;
    border-radius: 2px;
    background-color: #9747FF;
}

.author {
    display: block;
    padding: 20px 0 0 0;
    font-size: 18px;
    font-weight: 400;
    color: #A3A3A3;
    font-family: "Inter", 'Noto Sans TC', sans-serif;
}

.border-size > .data-each-card .big-data-tag {
    order: 2;
    align-self: flex-start;
    flex-shrink: 0;
    width: fit-content;
    margin: 20px 0 0 auto;
    padding: 0;
}

.border-size > .data-each-card .small-data-tag {
    order: 1;
    align-self: flex-start;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: calc(100% - 150px);
    margin: 20px 0 0 0;
    padding: 0;
}

.datasets {
    background-color: transparent;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 5px 25px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
}

.badge-tag {
    color: #9747FF;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: underline;
    text-underline-offset: 5px;
    line-height: 40px;
}

.data-para {
    order: 3;
    padding: 30px 0 0 0;
}

.para {
    font-size: 18px;
    font-weight: 400;
    color: #3C3C3C;
    line-height: 1.65;
}

.badge-tag span {
    text-decoration: none;
}

.dataset-pagination-toolbar .pagination {
    overflow: visible;
}

    .dataset-pagination-toolbar .pagination,
    .dataset-pagination-toolbar .pagination ul {
        flex-wrap: wrap;
    }


/*************** R W D ***************/

/***** 1390.98px以下 *****/
@media (max-width: 1390.98px) {

    .lang-en .border-size > .data-each-card .big-data-tag {
        order: 1;
        flex-basis: 100%;
    }

    .lang-en .border-size > .data-each-card .small-data-tag {
        order: 2;
        max-width: 100%;
    }

    .dataset-column-setting-btn {
        order: 2;
        flex-basis: 100%;
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .dataset-download-btn {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        justify-content: center;
    }

    .dataset-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/***** 1248.98px以下 *****/
@media (max-width: 1248.98px) {

    /* Datasets徽章移到副標題跟tag中間 ( ZH ) */
    .lang-zh .border-size > .data-each-card .big-data-tag {
        order: 1;
        flex-basis: 100%;
    }

    .lang-zh .border-size > .data-each-card .small-data-tag {
        order: 2;
    }
}

/***** 1200px以下 *****/
@media (max-width: 1199.98px) {

    /* #nav-tab改兩個一排，紫色襯線移除 ( EN ) */
    .lang-en .datasets-bar .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }

    .lang-en .nav-indicator {
        display: none;
    }
}

@media (max-width: 1114.98px) {
    .dataset-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/***** 1100px以下 *****/
@media (max-width: 1100.98px) {

    .dataset-view-actions {
        width: auto;
    }
}

/***** 1030px以下 *****/
@media (max-width: 1029.98px) {

    /* #nav-tab改兩個一排，紫色襯線移除 ( ZH ) */
    .lang-zh .datasets-bar .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }

    .lang-zh .nav-indicator {
        display: none;
    }
}

/***** 992px *****/
.dataset-column-setting-btn span {
    max-width: none;
}

/***** 991px以下 *****/
@media (max-width: 991.98px) {

    /* 側欄與選單列滿版寬 */
    .data-left-part {
        width: 100%;
    }

        .data-left-part .row.justify-content-center {
            width: 100%;
        }

    .node-wrapper {
        width: 100%;
    }

    .datasets-bar .nav {
        display: flex;
        justify-content: center;
    }

        .datasets-bar .nav .nav-link {
            width: auto;
            white-space: nowrap;
        }

    .dataset-column-setting-btn span {
        max-width: none;
    }

    .question-para {
        white-space: normal;
        max-width: calc(100vw - 40px);
    }

    .result-count-badge {
        width: 100%;
        justify-content: center;
    }
}

/***** 768px以下 *****/
@media (max-width: 768.98px) {

    .dataset-view-btn .view-btn-icon {
        display: inline-block;
    }


    .dataset-column-setting-btn span {
        display: inline-block;
    }
}

/***** 767.98px以下 *****/
@media (max-width: 767.98px) {

    .dataset-download-btn {
        width: auto;
    }
}

/***** 599px以下 *****/
@media (max-width: 599.98px) {

    /* 問號提示框改往下排、貼左顯示，避免被擠出畫面 */
    .question-para {
        top: 100%;
        left: 0;
        margin-top: 4px;
        margin-left: 0;
    }

    .body.container {
        padding: 20px 20px;
    }
}

/***** 576px以下 *****/
@media (max-width: 576.98px) {

    .dataset-view-actions {
        display: flex;
        width: auto;
    }

    .dataset-page-size-control-top {
        width: auto;
    }
}

/***** 484px以下 *****/
@media (max-width: 484.98px) {

    .dataset-view-actions {
        width: 100%;
    }

    .dataset-view-btn {
        flex: 1 1 0;
        width: auto;
    }

    .node-single-group {
        padding-left: 10px;
    }
}

/***** 400px以下 *****/

@media (max-width: 400.98px) {

    .data-left-part {
        font-size: 14px !important;
    }

    .node-wrapper {
        font-size: 14px !important;
    }

    .question-para,
    .datasets-filter,
    .filter-apply-and-clearall,
    .datasets-tag,
    .node-subItem .css-item2,
    .wizard-button,
    .cohort-button {
        font-size: 14px;
    }

    .lang-en .data-title,
    .lang-zh .data-title {
        font-size: 20px;
    }

    .lang-en .author,
    .lang-zh .author {
        font-size: 16px;
    }

    .lang-en .badge-tag span,
    .lang-zh .badge-tag span {
        font-size: 14px;
        line-height: 2px;
    }

    .data-each-card {
        padding: 20px;
    }

    .lang-en .para,
    .lanh-zh .para {
        font-size: 16px;
    }

    .lang-zh .data-each-card .small-data-tag {
        gap: 0;
    }
}

/*************** 論文集 ***************/

.border-size-paper {
    position: relative;
    padding: 20px;
    box-shadow: none;
    margin: 40px 0;
    transition: background-color 0.15s ease;
}

    .border-size-paper:first-child {
        margin-top: 20px;
    }

    .border-size-paper::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -20px;
        height: 1px;
        background-color: #D7D7D7;
    }

    .border-size-paper:hover {
        background-color: #F7F2FF;
        border-radius: 20px;
    }

    .border-size-paper:active {
        background-color: #E8D7FF;
        border-radius: 20px;
    }

    .border-size-paper .data-each-card:hover,
    .border-size-paper .data-each-card:focus {
        color: inherit;
        text-decoration: none;
    }

    .border-size-paper .data-each-card .big-data-tag {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .border-size-paper .data-each-card .datasets {
        order: 2;
    }

    .border-size-paper .data-each-card .DOI {
        order: 1;
    }

.periodical {
    font-size: 18px;
}

/***** 900px以下 *****/
@media (max-width: 900px) {

    .border-size-paper .data-each-card .big-data-tag {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .border-size-paper .data-each-card .datasets {
        order: 1;
    }

    .border-size-paper .data-each-card .DOI {
        order: 2;
    }
}

/*************** 實用資源 ***************/

.border-size-tool {
    position: relative;
    box-shadow: none;
    margin: 40px 0;
    transition: background-color 0.15s ease;
}

    .border-size-tool:first-child {
        margin-top: 20px;
    }

    .border-size-tool::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -20px;
        height: 1px;
        background-color: #D7D7D7;
    }

    .border-size-tool:hover {
        background-color: #F7F2FF;
        border-radius: 20px;
    }

    .border-size-tool:active {
        background-color: #E8D7FF;
        border-radius: 20px;
    }

    .border-size-tool .data-each-card:hover,
    .border-size-tool .data-each-card:focus {
        color: inherit;
        text-decoration: none;
    }

    .border-size-tool .data-each-card .author {
        flex: 1 1 auto;
        max-width: calc(100% - 150px);
    }

    .border-size-tool .data-each-card .big-data-tag {
        align-self: center;
        flex-shrink: 0;
        width: fit-content;
        margin: 0 0 0 auto;
        padding: 0;
    }

.paper-data-para {
    font-size: 18px;
}

/***** 700px以下 *****/
@media (max-width: 700px) {

    .border-size-tool .data-each-card .author {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .border-size-tool .data-each-card .big-data-tag {
        width: 100%;
        margin: 20px 0 0 0;
    }
}

/*************** Q & A ***************/

.border-size-QA {
    position: relative;
    box-shadow: none;
    margin: 40px 0;
    transition: background-color 0.15s ease;
}

    .border-size-QA:first-child {
        margin-top: 20px;
    }

    .border-size-QA::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -20px;
        height: 1px;
        background-color: #D7D7D7;
    }

    .border-size-QA:hover {
        background-color: #F7F2FF;
        border-radius: 20px;
    }

    .border-size-QA:active {
        background-color: #E8D7FF;
        border-radius: 20px;
    }

    .border-size-QA .data-each-card:hover,
    .border-size-QA .data-each-card:focus {
        color: inherit;
        text-decoration: none;
    }

    .border-size-QA .data-each-card .big-data-tag {
        flex-shrink: 0;
        width: 100%;
        margin: 40px 0 0 0;
        padding: 0;
    }

    .border-size-QA .paper-data-para b {
        color: #0056B8;
        font-size: 20px;
    }

/*************** 應用工具 ***************/

.tool-result-badge {
    width: fit-content;
    margin-top: 40px;
    user-select: none;
    -webkit-user-select: none;
}

/***** 991.98px以下 *****/
@media (max-width: 991.98px) {
    .tool-result-badge {
        width: 100%;
        justify-content: center;
    }
}

.each-filter > span:not(.filter-close) {
    color: #C372FD;
}

.datasets-bar .nav:has(.nav-link:only-child) {
    display: flex;
    justify-content: center;
}

.tool-app-card .data-each-card .author {
    flex: 1 1 auto;
    max-width: calc(100% - 150px);
}

.tool-app-card .data-each-card .big-data-tag {
    align-self: center;
    flex-shrink: 0;
    width: fit-content;
    margin: 0 0 0 auto;
    padding: 0;
}

.tool-app-card .data-each-card .small-data-tag {
    flex-basis: 0;
}

/***** 1248.98px以下 *****/
@media (max-width: 1248.98px) {
    .tool-app-card .data-each-card .big-data-tag {
        margin-top: 20px;
    }
}
/*************** AI 資料集助手：送出按鈕辨識度調整 ***************/
#datasetAiPanel .dataset-ai-send-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 1px solid #6F2CE8;
    border-radius: 10px;
    background: #7C3AED;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    #datasetAiPanel .dataset-ai-send-btn:hover:not(:disabled) {
        background: #6425D0;
        border-color: #6425D0;
        box-shadow: 0 6px 16px rgba(100, 37, 208, 0.30);
    }

    #datasetAiPanel .dataset-ai-send-btn:active:not(:disabled) {
        background: #5420B5;
        border-color: #5420B5;
        transform: translateY(1px);
    }

    #datasetAiPanel .dataset-ai-send-btn:focus-visible {
        outline: 3px solid rgba(124, 58, 237, 0.24);
        outline-offset: 2px;
    }

    #datasetAiPanel .dataset-ai-send-btn i {
        color: #FFFFFF;
        font-size: 18px;
        line-height: 1;
    }

    #datasetAiPanel .dataset-ai-send-btn:disabled {
        background: #C8B5F0;
        border-color: #C8B5F0;
        color: #FFFFFF;
        box-shadow: none;
        cursor: not-allowed;
        opacity: 0.9;
    }
