@import url("./bootstrap-icons.css");

* {
    touch-action: pan-y;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    color: transparent;
}

body,
html {
    -webkit-tap-highlight-color: transparent
}

body {
    font-family: system-ui, -apple-system, Helvetica Neue, sans-serif;
    color: #2d2d2d;
    padding-bottom: 4em;
}

ul {
    list-style: none
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

/*bootstrap css 修改*/
.modal-dialog {
    margin: 15vh 2rem;
}

.modal-footer {
    justify-content: space-around;
    padding: .4rem;
}

.modal-dialog .btn {
    padding: .375rem 1rem;
}

/*bootstrap css 修改结束*/

.block.bl_1 {
    background: linear-gradient(to bottom left, #fff0eb, #fff7f5);
    color: #e3777b;
}

.block.bl_2 {
    background: linear-gradient(to left, #fff3d9, #fefaef);
    color: #e4a23d;
}

.block.bl_3 {
    background: linear-gradient(to top left, #ebf4fc, #f4f9ff);
    color: #54acfa;
}

.block.bl_4 {
    background: linear-gradient(to left, #d0f7f7, #eafafa);
    color: darkcyan;
}

.blocks {
    padding: 10px;
}

.block {
    margin: 5px;
    border-radius: 6px;
    min-height: 4rem;
    display: flex;
    align-items: center;
}

.block i {
    font-size: 1.5em;
}

.bl_1 i,
.bl_2 i,
.bl_3 i,
.bl_4 i {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.bl_1 i {
    font-size: 2em;
}

.block.bl_1 .text {
    font-size: 1.2em;
    align-self: start;
    margin-top: 15px;
}

.block .text-tips {
    font-size: 0.75em;
    line-height: 2;
}

.blocks_second .block {
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.blocks_second .block .icon_b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3em;
    font-size: 1.1em;
    border-radius: 0.5em;
    color: #ffffff;
}

.blocks_second .block .icon_b+.text {
    margin-top: 10px;
}

.icon_b_1 {
    background-color: #fa9d3b;
}

.icon_b_2 {
    background-color: #1677d2;
}

.icon_b_3 {
    background-color: #4da7f3;
}

.row-title {
    padding: 10px 0;
    background-color: rgb(236, 242, 254);
    margin-top: 10px;
}

.row-title .col {
    display: flex;
    overflow: hidden;
}

.row-title ._bd {
    position: relative;
    background-color: coral;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 2em;
    height: 2em;
    width: 8em;
    padding: 0;
}

.row-title ._bd::after {
    content: " ";
    display: block;
    background: coral;
    width: 2em;
    height: 2em;
    transform: rotate(45deg);
    position: absolute;
    right: -1em;
    z-index: 0;
}

.row-title ._bd::before {
    content: " ";
    display: block;
    background: rgb(241, 245, 251);
    width: 2em;
    height: 2em;
    transform: rotate(45deg);
    position: absolute;
    left: -1em;
    z-index: 0;
}

.row-title ._bd .words {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: right;
    z-index: 1;
}

.row-title .warning {
    color: #007bff;
}


.blocks_third .row {
    border-bottom: 1px solid #f0f0f0;
}

.blocks_third .block {
    min-height: 2em;
    margin: 0;
    border-radius: 0;
    padding: 15px 10px;
}

.blocks_third .block i {
    font-size: 0.9em;
}

.blocks_third .block i+.text {
    margin-left: 8px;
}

.home_hd {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 50vw;
    overflow: hidden;
}

.home_bd {
    background-color: #ffffff;
    padding-bottom: 4em;
    margin-top: 50vw;

}

.page_hd {
    background-color: #1f5a99;
    color: #ffffff;
    padding: 1.6em;
}

.page_title {
    font-size: 1.3rem;
}

.page_desc {
    margin-top: 4px;
    color: #f7f4ef;
}

.page_sub {
    text-align: left;
    background-color: #e9ecef;
    padding: 0.7em 1em;
    border-radius: 0;
    margin-bottom: 1rem;
}

.page_hd,
.page_sub {
    margin-left: -15px;
    margin-right: -15px;
}

.page_bd {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.list-group.organ_list .list-group-item {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: .75rem 0;
}

.list-group.organ_list .list-group-item:last-child {
    border-bottom: 0;
}

.list-group.organ_list .list-group-item p {
    padding: 3px 0;
}

.list-group.organ_list .gray {
    color: #999999;
}

.secondary {
    font-size: 0.95em;
}

.center {
    text-align: center;
}

.list-group.organ_list .address {
    color: cadetblue;
}

.list-group.organ_list .address i {
    margin-right: 0.5em;
}

.form-container {
    padding: 1rem 0;
}

.form-bd label {
    color: #6c757d;
}

.form-ft {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2.5rem;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
}

.search_result {
    word-wrap: break-word;
}

.search_result small {
    color: #686868;
}

.detail-item {
    border-bottom: 1px solid #eeeeee;
    padding: 0.4rem 0;
    display: flex;
    justify-content: space-between;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-cell_label {
    color: #6c757d;
}

.detail-cell {
    padding: 0.15rem 0;
}

.detail-item.content {
    display: block;
    border: none;
}

.detail-item.imgs {
    justify-content: start;
}

.detail-item .imgbd {
    width: 30%;
    height: 0;
    padding-bottom: 30%;
    border-radius: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 5px;
}

.detail-item.content .detail-cell_value {
    border: 1px solid #eeeeee;
    border-left-width: .25rem;
    border-radius: .4rem;
    border-left-color: #f0ad4e;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    margin-top: 0.5rem;
    word-wrap: break-word;
}

.detail-item.content.reply .detail-cell_value {
    border-left-color: #28a745;
}

.form-img-upload ._item {
    position: relative;
    padding: 5px 10px 0 10px;
}

.form-img-upload ._item ._item_bd {
    position: relative;
    background-color: #f5f5f5;
    height: 0;
    padding-bottom: 100%;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.form-img-upload ._item ._item_bd.img_upload_btn::before,
.form-img-upload ._item ._item_bd.img_upload_btn::after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #dee2e6;
}

.form-img-upload ._item ._item_bd.img_upload_btn::before {
    width: 2px;
    height: 60%;
}

.form-img-upload ._item ._item_bd.img_upload_btn::after {
    width: 60%;
    height: 2px;
}

.form-img-upload ._item ._item_bd.img_upload_btn:active::before,
.form-img-upload ._item ._item_bd.img_upload_btn:active::after {
    background-color: #999999;
}

.form-img-upload ._item ._item_bd input {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.form-img-upload ._item .progress {
    display: block;
    position: absolute;
    width: 100%;
    height: 2em;
    line-height: 2em;
    z-index: 2;
    top: 50%;
    transform: translate(0, -50%);
    background-color: transparent;
    text-align: center;
}

.form-img-upload ._item ._item_ft {
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1.15em;
}

.form-img-upload ._item ._item_ft i {
    flex: 1;
    text-align: center;
    margin: 0 5px;
    background-color: #f9f9f9;
    color: #999999;
}

.imagesBrowser.modal.show .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.imagesBrowser .modal-content {
    border: 0;
    border-radius: 0;
    background-color: #000000;
    background-color: rgba(0, 0, 0, 1);
    max-height: 100vh;
}

.imagesBrowser .modal-content .swiper {
    max-width: 100%;
}

.imagesBrowser .modal-header {
    padding: 1rem 1rem;
    border-bottom: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: #ffffff;
    align-items: center;
}

.imagesBrowser .modal-body {
    padding: 0;
    overflow-y: scroll;
    overflow-x: scroll;
}

.imagesBrowser .modal-header .close {
    padding: 0.5rem 0.5rem;
    margin: -1rem -1rem -1rem auto;
    color: #ffffff;
    font-size: 2rem;
}

.imagesBrowser_close {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: #adb5bd;
    font-size: 3rem;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 8px;
}

body,
.home_hd {
    max-width: 768px;
    margin: 0 auto;
}

.modal-dialog {
    margin: 15vh auto;
}

.modal {
    padding-left: 2em;
    padding-right: 2em;
}




/* 模态窗基础样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0 15px;
}

/* 模态窗显示状态 */
.modal-overlay.active,
.modal-container.active {
    opacity: 1;
    visibility: visible;
}

/* 模态窗盒子通用样式 */
.modal-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform: translateY(-20px);
}

.modal-container.active .modal-box {
    transform: translateY(0);
}

/* 模态窗头部 */
.modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 模态窗图标 */
.modal-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.confirm-icon {
    color: #3498db;
}

.success-icon {
    color: #27ae60;
}

.error-icon {
    color: #e74c3c;
}

.info-icon {
    color: #3498db;
}

/* 模态窗关闭按钮 */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

/* 模态窗内容区 */
.modal-body {
    padding: 20px;
    font-size: 1rem;
    color: #34495e;
    line-height: 1.6;
}

/* 模态窗底部按钮区 */
.modal-footer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* 模态窗按钮通用样式 */
.modal-btn {
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
}

/* 按钮类型区分 */
.modal-btn-cancel {
    background-color: #e9ecef;
    color: #495057;
}

.modal-btn-cancel:hover {
    background-color: #dee2e6;
}

.modal-btn-confirm {
    background-color: #3498db;
    color: #fff;
}

.modal-btn-confirm:hover {
    background-color: #2980b9;
}

.modal-btn-ok {
    background-color: #3498db;
    color: #fff;
    width: 100%;
}

.modal-btn-ok:hover {
    background-color: #2980b9;
}

.success-box .modal-btn-ok {
    background-color: #27ae60;
}

.success-box .modal-btn-ok:hover {
    background-color: #218838;
}

.error-box .modal-btn-ok {
    background-color: #e74c3c;
}

.error-box .modal-btn-ok:hover {
    background-color: #c0392b;
}

/* 加载中模态窗样式 */
.loading-box {
    padding: 30px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: #34495e;
}

/* 加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-box {
        max-width: 90%;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 16px;
        font-size: 0.95rem;
    }

}