﻿[v-cloak] {
    display: none;
}

#geoDataAndServices {
    position: relative;
    color: #484848;
    max-width: 1408px;
    margin: 0 auto;
    font-size: 16px;
}

.breadcrumb {
    margin: 8px 0 20px;
}

.data-category__container {
    display: flex;
    flex-wrap: wrap; /* 當空間不足時自動換行 */
    padding: 0;
    margin: 0;
    list-style: none;
    margin-left: .5rem;
}

.data-category__long-item {
    width: 12rem;
    height: 60px;
}

.data-category__short-item {
    min-width: 6.5rem;
    height: 42px;
}

.data-category__item {
    padding: 6px 12px;
    border: 1px solid #1A82D9;
    border-radius: 6px;
    color: #1A82D9;
    margin-right: 1rem; /* 可調整間距 */
    margin-top: .5rem;
    margin-bottom: .5rem;
    /* 根據內容調整寬度，避免固定 */
    flex: 0 1 auto;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

    .data-category__item:hover,
    .data-category__item__active {
        background-color: #1A82D9;
        border: 1px solid white;
        color: white;
    }

.description {
    color: #FF0000;
    border: 1px solid #DF7E6B;
    border-radius: 6px;
    padding: 5px 10px;
}

/* 有序列表使用中文數字 */
ol.description  {
    list-style: none;
    counter-reset: chinese-counter;
    padding-left: 36px;
}

.description li {
    margin-bottom: 5px;
    line-height: 1.4;
    counter-increment: chinese-counter;
    position: relative;
}

.description li::before {
    content: counter(chinese-counter, cjk-ideographic) "、";
    position: absolute;
    left: -28px;
    font-weight: normal;
}

.searchBar__container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    background-color: #E3F2FF;
    border-radius: 6px;
    padding: 17px 20px;
}

.searchBar__container--large {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    background-color: #E3F2FF;
    border-radius: 6px;
    padding: 17px 20px;
}

.searchBar__field {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
}

.searchBar__field--auto-height {
    height: auto;
    align-items: end;
    display: flex;
}

.searchBar__field__list {
    display: block;
}

.searchBar__field__list__item {
    padding: 5px;
}


.searchBar__fieldName {
    font-weight: bold;
}

.searchBar__radioButton {
    margin: 0 4px 0 12px;
}

.searchBar__select {
    color: #666666;
    padding-left: 12px;
    width: 122px;
    height: 26px;
    border: none;
    background-color: white;
}

.searchBar__select--small {
    color: #666666;
    padding-left: 12px;
    width: 90px;
    height: 26px;
    border: none;
    background-color: white;
}

.searchBar__select--large {
    color: #666666;
    padding-left: 12px;
    min-width: 122px;
    max-width: 240px;
    height: 26px;
    border: none;
    background-color: white;
}

.searchBar__input {
    padding-left: 12px;
    width: 320px;
    height: 26px;
    border: none;
}

.searchBar__searchButton {
    background-image: url(../../Images/Shared/search.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 46px;
    height: 26px;
    position: absolute;
    right: 0px;
    cursor: pointer;
}

.fileSize {
    color: #2B81E0;
    position: absolute;
    right: 0px;
    text-align: right;
}

.layerClassification__container {
    margin: 30px 0 15px;
    display: flex;
}

.layerClassification__name {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid #1A82D9;
    color: #1A82D9;
    padding: 0 10px 6px;
    margin: 0 auto;
}

.button {
    background-position: center;
    background-repeat: no-repeat;
    width: 60px;
    height: 26px;
    border-radius: 13px;
    cursor: pointer;
    display: inline-block;
    align-content: center;
    text-align: center;
}

.button--addApply {
    border: 1px solid #1A82D9;
    background-color: white;
    color: #1A82D9;
    height: 30px;
    border-radius: 15px;
}

.button--link {
    background-color: #0078D4;
    background-size: 25px 25px;
    background-image: url(../../Images/GeoDataAndServices/link.svg);
}

.button--metadata {
    background-color: white;
    border: 1px solid #2b81e0;
    color: #2b81e0;
}

.button--modal {
    background-color: #226FC5;
    color: white;
    width: 70px;
    height: 30px;
    border-radius: 15px;
    margin: 20px auto;
}

.text-align--left {
    text-align: left;
}

.batchButton {
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 80px;
    width: 80px;
    right: min(100px, max(0px, calc((100% - 1408px - 80px) / 2)));
    border-radius: 50%;
    color: #fff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
}

.batchButton--subscribe {
    bottom: 130px;
    background-color: #FFB82A;
}

.batchButton--download {
    bottom: 30px;
    background-color: #2B81E0;
}

.batchButton__icon {
    background-image: url(../../Images/GeoDataAndServices/download.svg);
    background-size: 25px 25px;
    background-position: center;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    margin: 10px auto 0;
}

.batchButton--subscribe .batchButton__icon {
    background-image: url(../../Images/GeoDataAndServices/subscribe.svg);
}

.batchButton__badge {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff;
    color: #3498db;
    border: 3px solid #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.batchButton__badge--subscribe {
    color: #FFB82A;
    border: 3px solid #FFB82A;
}

.batchButton__badge--download {
    color: #2B81E0;
    border: 3px solid #2B81E0;
}

.modal__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222222b3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: white;
    border-radius: 6px;
    width: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 14px;
}

.modal--applyForm {
    padding-top: 2.5rem;
    width: 600px;
}


.modal--title {
    color: #1A82D9;
    font-weight: bold;
    font-size: 1.25rem;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #B4B4B4;
    margin-bottom: .5rem;
}

.modal--title-center {
    margin-top: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #B4B4B4;
    margin-bottom: .5rem;
    text-align: center;
    font-size: 1.1rem;
}

.modal--url {
    width: 50%;
}

.modal--subscribe {
    width: 580px;
    height: 251px;
}

.modal__closeButton {
    background-image: url(../../Images/Shared/close.svg);
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.modal__Content--url {
    width: calc(100% - 20px);
    word-break: break-word;
    background-color: #F2F2F2;
    border: 1px solid #9D9D9D;
    margin: 50px 10px 0;
    padding: 5px;
}

.modal__Content--row {
    width: calc(100% - 15px);
    word-break: break-word;
    margin-left: 5px;
    margin-right: 10px;
    margin-bottom: 1rem;
    padding: 0px 5px;
}

.modal__Content--row--tips {
    width: calc(100% - 30px);
    word-break: break-word;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    padding: 8px 5px;
    background-color: #f0f9ff;
}

.modal__Content--row--urlSpan {
    display: inline-block;
    cursor: copy;
    color: blue;
    text-decoration: underline blue;
}

.modal__Content--row--span {
    display: inline-block;
}

.modal-Content--form-tableContainer {
    padding: 1rem;
}

.modal-Content--form-table {
    border-collapse: collapse;
    width: 100%;
}

.modal-Content--applyInputText {
    width: 100%;
}

.modal-Content--applyInput-required::before {
    content: "*";
    color: red;
}

.modal-Content--button-row {
    display: flex;
    justify-content: center;
}

.modal-Content--form-table th {
    background-color: #E3F2FF;
    text-align: left;
    color: #1A82D9;
    min-width: 8rem;
    width: 8rem;
}

    .modal-Content--form-table th:first-child {
        min-width: 9rem;
        width: 9rem;
    }

.modal-Content--form-table td {
    word-wrap: break-word;
    word-break: break-all;
}

.modal-Content--form-table th,
.modal-Content--form-table td {
    border: 1px dashed #b4b4b4;
    padding: 5px;
}

.modal__Content--row--staticTextSpan {
    display: inline-block;
    width: 10%;
    min-width: 90px;
    margin-right: 20px;
}

.modal__content--row--tipsHeader {
    color: #1A82D9;
    margin-left: .5rem
}

.modal__Content--row--tipsTextSpan {
    display: inline-block;
    margin-left: 1rem;
}

.modal__Content--row--tipsUrl {
    color: initial;
    display: inline-block;
}

.modal__Content--row > span,
.modal__Content--row > div {
    margin-left: 1rem;
}

    .modal__Content--row > div.button--modal {
        margin: 8px auto;
    }

.modal__content--subscribe {
    display: flex;
    flex-direction: column;
    padding: 50px 35px 30px;
    height: 181px;
    border-bottom: 1px solid #B4B4B4;
}

.modal__text--greeting {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.modal__emailContainer {
    display: flex;
    align-items: center;
    margin: 20px auto 30px 0;
}

.modal__label-radioText {
    margin-right: 8px;
}

.modal__label {
    margin-right: 8px;
}

.modal__input {
    width: 336px;
    height: 26px;
    border: 1px solid #707070;
    padding-left: 12px;
}

.modal__errorInput {
    position: absolute;
    top: 150px;
    left: 120px;
    color: red
}

.width--100 {
    width: 100%
}

.button--modal--popup-Yes {
    background-color: #226FC5;
    color: white;
    width: 70px;
    height: 35px;
    border-radius: 10px;
    margin: 15px auto;
}

.button--modal--popup-Cancel {
    background-color: white;
    color: #226FC5;
    border: 1px solid #226FC5;
    width: 70px;
    height: 35px;
    border-radius: 10px;
    margin: 15px auto;
}

.modal--popup-restoreRecord {
    border: 2px solid #226FC5;
    background-color: white;
    color: #226FC5;
    width: 70px;
    height: 35px;
    border-radius: 10px;
    margin: 15px auto auto 50px;
    width: 180px
}

.table__checkbox {
    border-color: #666666;
}

/* 排序箭頭樣式 */
.sort-arrows {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    line-height: 1;
    cursor:pointer;
}

.sort-arrows i {
    font-size: 16px;
    color: #1A82D9;
    transition: color 0.2s ease;
}

.sort-arrow--disabled {
    color: #CCCCCC !important;
    opacity: 0.5;
}

/* 確保有排序功能的表頭有相對定位 */
.table__th--sortable {
    position: relative;
    cursor:pointer;
    /*
    padding-right: 35px;  為箭頭預留空間 */
}
/*手機版RWD*/
#backToTopButton {
    background-image: url('../../../../../Content/Images/Index/icon_回頂端.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    bottom: calc(200px - (80px * 2));
    right: 2px;
    width: 58px;
    height: 58px;
    z-index: 1;
    cursor: pointer;
    background-color: #FFB82A;
    border-radius: 5px;
}
.card-content--buttonContainer{
    display:flex;
}
@media only screen and (max-width: 576px) {
    .button--link{
        width:40px;
        height:20px;
        margin-bottom:0px !important;
    }
    .searchBar__field--auto-height{
        width:100%;
    }
    .searchBar__select--large {
        color: #666666;
        padding-left: 12px;
        width: 122px;
        height: 26px;
        border: none;
        background-color: white;
    }
    .modal__closeButton {
        background-size: 20px 20px;
        width: 20px;
        height: 20px;
    }

    .data-category__container {
        padding: 0 5%; /* 左右邊界 5%寬度 */
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 每列兩個 */
        column-gap: 5%; /* 兩個 item 間距大約 5% */
        row-gap: 0.5rem; /* 上下間距可調整 */
    }

    .data-category__item {
        margin: 0; /* 移除外距避免破壞貼邊 */
        width: 100%; /* 填滿欄位 */
        box-sizing: border-box; /* 確保 padding 不超過欄位寬度 */
    }

    #geoDataAndServices {
        width: 100%;
    }

    .breadcrumb {
        margin: 20px;
    }

    .description {
        letter-spacing: 1.2px;
        line-height: 1.4;
        font-size: 0.97rem;
    }

    .fileSize {
        color: #2B81E0;
        position: relative;
        text-align: right;
        padding-right: 5%;
        top:0;
        padding-bottom:1rem;
    }

    .card, .searchBar__container, .description { /*容器統一寬度*/
        width: 90%;
        margin: 5% auto;
        border-radius: 6px;
    }

    .batchButton {
        height: 60px;
        width: 60px;
        font-size: 12px;
        right: 1px;
    }

    .batchButton__badge {
        top: -5px;
        right: -2px;
    }

    .batchButton__icon {
        width: 20px;
        height: 20px;
        margin: 10px auto 5px;
    }

    .batchButton--subscribe {
        bottom: 200px;
        background-color: #FFB82A;
    }

    .batchButton--download {
        bottom: calc(200px - 80px);
        background-color: #2B81E0;
    }

    .searchBar__container {
        padding: 10px 15px;
    }

    .searchBar__field {
        margin: 2% 0;
        width: 100%;
    }

    .searchBar__fieldName {
        width: 33%;
    }

    .searchBar__input {
        width: 67%;
    }

    .card {
        background-color: #FBFDFF;
        box-shadow: 0px 0px 6px #00000029;
        position: relative;
        border-radius: 6px;
        overflow: hidden; /* 確保子元素不會超出卡片邊界 */
    }

    /* 標題區域 - 獨立的區塊 */
    .card-title-block {
        padding: 3% 5%;
    }

    /* 有子項目的標題區域才有左邊界 */
    .card-title-block--with-border {
        border-left: 3px solid #1A82D9;
        padding-left: calc(5% - 3px); /* 減去邊界寬度保持對齊 */
    }

    /* 內容區域 - 沒有左邊界 */
    .card-content-block {
        padding: 0 5% 3%;
    }

    .card-expand-arrow {
        display: inline-block;
        color: #1A82D9;
        cursor: pointer;        
        font-size: 1rem;        
        text-align: center;
        position: absolute;
        left: -2%; /* 更靠近左邊界 */
        top: 50%;
        transform: translateY(-50%);
        width: 15px; /* 稍微縮小按鈕區域 */
        height: 20px;
        line-height: 20px;
    }

    /* 所有標題都統一左側留白，但縮小間距 */
    .card-title {
        padding-left: 15px; /* 從 30px 減少到 15px */
        position: relative;
    }

    /* 移除之前的特定樣式 */
    /* .card-title-block--with-border .card-title 已不需要 */

    .card-expand-arrow:hover {
        color: #0066CC;
    }

    .card-sub-item {
        background-color: #F8F9FA;
        margin: 10px -5% 5px -5%;  /* 延伸到卡片邊界 */
        padding: 3% 5%;        
        border-radius: 4px;
    }

    .card-sub-title {
        color: #1A82D9;
        text-decoration: underline;
        font-weight: 600;
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .card-sub-details {
        font-size: 0.85rem;
        color: #666666;
        margin-left: 4%;
    }

    .card-title {
        color: #1A82D9;
        text-decoration: underline;
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 1.2px;
    }

    .card-title-mg-bottom {
        margin-bottom: 10px;
    }

    .card-content {
        display: flex;
        flex-direction: row;
        font-size: 0.9rem;
        color: #666666;
        margin-left: 8%;
    }

    .card-text {
        line-height: 1.8;
    }

    .card-link {
        margin-left: 10%;
        align-content: end;
    }

        .card-link a {
            display: block;
            text-decoration: underline;
            color: #1A82D9;
            line-height: 1.8; /*與左邊文字card-text同值(高)*/
        }

            .card-link a:last-child {
                margin-bottom: 0;
            }

    .all-checkbox-items {
        display: flex;
        font-size: 0.9rem;
        justify-content: space-evenly;
    }

    .checkbox-item {
        display: flex;
        align-items: center;
    }

    .table__checkbox {
        margin-left: 5px;
    }

    .modal--url {
        width: 80%;
    }

    .modal--subscribe {
        width: 90%;
    }

    .modal__input {
        width: 70vw;
    }

    .modal__label {
        display: none;
    }

    .modal__errorInput {
        top: 160px;
        left: 50px;
    }

    .modal-Content--form-table tr {
        display: grid;
        grid-template-columns: 35% 65%;
        grid-gap: 0.5rem;
        width: 100%;
    }

    .modal-Content--form-table th,
    .modal-Content--form-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

        /* 讓 colspan 也維持在第二欄 */
        .modal-Content--form-table td[colspan] {
            grid-column: 2; /* 直接放到右欄 */
        }

        .modal-Content--form-table th:first-child {
            width: 100%;
        }
}
