/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2024-01-03 00:15:11
 * @LastEditors: zhuti
 * @LastEditTime: 2025-09-14 20:10:45
 * @FilePath: /swnav/assets/css/sub-style.css
 * @Description: 自定义样式
 */
.slider-tab .anchor {
    height: 8px !important;
    transform: skewX(-20deg);
    background: linear-gradient(to right, transparent 0%, #FCCA1E 100%) !important;
    bottom: 8px;
    margin: -8px 0px 10px 8px;
}

.slider-tab {
    background: transparent !important;
    padding-left:0;
}

.slider-tab .tab-item.active {
    color: var(--theme-color);
}

.slider-tab .tab-item {
    padding: 0;
    margin: -8px 0px 10px 8px;
    font-size: 15px;
}

h4.tab-title.text-gray.text-md.m-0.mr-2 {
    font-size: 17px !important;
    display: flex;
    align-items: center;
}

h4.tab-title.text-gray.text-md.m-0.mr-2::after {
    content: '';
    width: 2px;
    display: block;
    height: 12px;
    background: #666;
    margin-left: 16px;
}

.siteico {
    background: #e6e8ed;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 20px -20px rgba(0, 0, 0, .15);
    border-radius: 10px;
    transition: background-color .3s;
}

.siteico:before {
    content: '';
    display: block;
    padding-top: 100%;
}

.site-content img:not(.button-icon) {
    border-radius: 5px;
}

.siteico {
    box-shadow: 0 25px 20px -20px rgba(0, 0, 0, .1);
    height: 100%;
}

.custom-siteInfo {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.custom-site-down {
    position: relative;
    width: 100%;
    order: 2;
    z-index: 10;
}

.custom-site-up {
    width: 100%;
    height: 200px;
    order: 1;
    position: relative;
}

.site-title-icon {
    width: 100px;
    height: 100px;
    vertical-align: top;
    border-radius: 12px !important;
    margin-right: 15px;
    border: 5px solid #fff;
    background: #fff
}

.site-name span .mb-2 {
    margin-bottom: 0 !important;
}

/* 限制标题简介文字行数，多余的使用省略号替代 */
.site-name span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 25px;
}

.site-name span p.mb-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    /* 约为2行文字的高度 */
    line-height: 1.4;
    margin-top: 5px;
    color: #9aa0a7;
    font-size: 14px;
}

/* 新增的按钮样式 */
.site-stats-buttons {
    display: flex;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 20;
    flex-wrap: wrap;
    max-width: 70%;
}

.site-stats-button {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #ffffff8c;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.site-stats-button:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.site-stats-button i {
    margin-right: 5px;
    font-size: 14px;
}

.site-stats-button small {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-stats-button.active {
    background-color: rgba(var(--mainColor-rgb), 0.7);
}
.site-name-box {
    width: 100%;
}
.site-name.align-items-center {
    padding: 0 20px;
}

.site-title-icon {
    margin-top: -50px
}

/* 手机端响应式布局 */
@media (max-width: 767px) {
    .custom-site-down {
        width: 100%;
        padding-right: 0;
        order: 2;
    }

    .custom-site-up {
        width: 100%;
        order: 1;
        height: 250px;
        margin-bottom: 15px;
    }

    .site-title-icon {
        width: 48px;
        height: 48px;
        margin-right: 8px;
        border: 3px solid white;
        /* 宽度 样式 颜色 */
        background: #fff
    }

    .site-name.h3 {
        font-size: 1.8rem;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .site-name span p.mb-2 {
        font-size: 0.75rem;
        margin-bottom: 0.3rem !important;
    }

    .site-stats-buttons {
        top: 10px;
        left: 10px;
        max-width: 100%;
    }

    .site-stats-button {
        margin-right: 6px;
        margin-bottom: 6px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .site-name.h3.my-3.d-flex.align-items-center img.site-title-icon {
        width: 65px;
        height: 65px;
        margin-right: 12px;
    }

    .site-name.h3.my-3.d-flex.align-items-center {
        background: #ffffffdb;
        backdrop-filter: saturate(2) blur(15px);
        border-radius: 0 0 10px 10px;
    }

    .io-black-mode .site-name.h3.my-3.d-flex.align-items-center {
        background: #00000094;
    }

    .custom-site-down {
        position: relative;
        margin-top: -100px;
        z-index: 10;
    }

    .site-name.align-items-center {
        padding: 12px;
    }

    .site-title-icon {
        margin-top: 0px
    }
}


.img-cover.site-img-optimized {
    position: absolute;
    width: 100% !important;
    max-width: 1280px !important;
    height: 100% !important;
    max-height: 960px !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 1;
    object-fit: cover
}

/* 确保国家信息和失效信息在最上层 */
.link-dead {
    display: none;
}

/* 手机查看二维码样式 */
.site-qr-code {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
    color: #fff
}

/* 右侧半透明黑色遮罩 */
.site-img-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 180px;
    height: 100%;
    background: #0006;
    backdrop-filter: saturate(2) blur(15px);
    -webkit-backdrop-filter: saturate(2) blur(15px);
    z-index: 1;
    pointer-events: none;
}

.siteico.site-img-wrapper::after {
    content: "";
    background: #000000;
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.2;
    top: 0;
    z-index: 1;
}

@media (max-width: 767px) {
    .site-img-wrapper {
        padding-bottom: 50%;
        /* 4:3比例 */
        border: none
    }

    .siteico.site-img-wrapper {
        max-width: 100%;
    }

    .site-qr-code,
    .site-img-overlay {
        display: none;
    }
}

.btn.btn-danger {
    background: #0000;
    border: none;
    color: #fb3b5b;
    padding: 10px;
}

.site-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(125, 125, 125, 0.2);
    align-items: center;

}

.secondary-buttons {
    position: absolute;
    right: 0;
    justify-content: flex-end;
}

.main-buttons .btn,
.secondary-buttons .btn {
    padding: 10px 20px;
    border-radius: 50px !important;
}

.btn.btn-danger.qr-img.tooltip-toggle.rounded-lg {
    background: #0000;
    border: none;
    color: #fb3b5b;
    padding: 10px;
}

/* 未收藏状态 */
.btn-arrow.btn-like {
    background-color: rgb(252 202 39 / 10%) !important;
    color: #000;
    border: 1px solid rgb(252 202 39 / 40%);
}

.btn-arrow.btn-like:hover {
    color: #000;
}

/* 已收藏状态 */
.btn-like.liked {
    background-color: rgb(252 204 40) !important;
    color: #000 !important;
    box-shadow: 0 2px 10px rgba(252, 204, 40, 0.4);
    border: none;
}

.btn-arrow.site-btn-ad {
    box-shadow: 0 2px 10px rgb(250 59 90 / 40%);
}

@media (max-width: 767px) {
    .site-buttons-group {
        flex-direction: column;
        gap: 0;
    }

    .main-buttons {
        width: 100%;
        margin-right: 0;
    }

    .secondary-buttons {
        position: static;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .main-buttons .btn,
    .secondary-buttons .btn {
        padding: 8px 15px;
    }
}

/* 标签和备注样式 */
.site-tags,
.site-remarks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* 标签链接样式 */
.site-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgb(39 78 238 / 5%);
    border-radius: 30px;
    color: var(--mainColor);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgb(39 78 238 / 20%);
}

.site-tags a:hover {
    color: var(--theme-color);
    background-color: rgb(255 255 255);
}

.site-tags-area .tags-label {
    font-size: 16px;
    margin-bottom: 0.35rem;
}

.site-tags a {
    margin-bottom: 0.35rem;
}
@media (min-width: 768px) {
    .flex-md-row {
        -ms-flex-direction: row!important;
        flex-direction: row !important;
    }
}