/* 主容器：侧边栏 + 内容区 */
.main-container {
    display: flex;
    margin-top: 100px; /* 顶部导航栏高度 + 间距 */
    gap: 12px;
    min-height: calc(100vh - 110px);
}
.i-ph-robot {
    --un-icon: url(data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M200 48h-64V16a8 8 0 0 0-16 0v32H56a32 32 0 0 0-32 32v112a32 32 0 0 0 32 32h144a32 32 0 0 0 32-32V80a32 32 0 0 0-32-32m16 144a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h144a16 16 0 0 1 16 16Zm-52-56H92a28 28 0 0 0 0 56h72a28 28 0 0 0 0-56m-24 16v24h-24v-24Zm-60 12a12 12 0 0 1 12-12h8v24h-8a12 12 0 0 1-12-12m84 12h-8v-24h8a12 12 0 0 1 0 24m-92-68a12 12 0 1 1 12 12a12 12 0 0 1-12-12m88 0a12 12 0 1 1 12 12a12 12 0 0 1-12-12'/%3E%3C/svg%3E);
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M200 48h-64V16a8 8 0 0 0-16 0v32H56a32 32 0 0 0-32 32v112a32 32 0 0 0 32 32h144a32 32 0 0 0 32-32V80a32 32 0 0 0-32-32m16 144a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h144a16 16 0 0 1 16 16Zm-52-56H92a28 28 0 0 0 0 56h72a28 28 0 0 0 0-56m-24 16v24h-24v-24Zm-60 12a12 12 0 0 1 12-12h8v24h-8a12 12 0 0 1-12-12m84 12h-8v-24h8a12 12 0 0 1 0 24m-92-68a12 12 0 1 1 12 12a12 12 0 0 1-12-12m88 0a12 12 0 1 1 12 12a12 12 0 0 1-12-12'/%3E%3C/svg%3E") no-repeat;
    mask: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M200 48h-64V16a8 8 0 0 0-16 0v32H56a32 32 0 0 0-32 32v112a32 32 0 0 0 32 32h144a32 32 0 0 0 32-32V80a32 32 0 0 0-32-32m16 144a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h144a16 16 0 0 1 16 16Zm-52-56H92a28 28 0 0 0 0 56h72a28 28 0 0 0 0-56m-24 16v24h-24v-24Zm-60 12a12 12 0 0 1 12-12h8v24h-8a12 12 0 0 1-12-12m84 12h-8v-24h8a12 12 0 0 1 0 24m-92-68a12 12 0 1 1 12 12a12 12 0 0 1-12-12m88 0a12 12 0 1 1 12 12a12 12 0 0 1-12-12'/%3E%3C/svg%3E") no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    background-color: currentColor;
    color: inherit;
    width: 1em;
    height: 1em;
    font-size: 1.5rem;
    line-height: 2rem;
    display: inline-block;
}
/* 左侧侧边栏 */
.sidebar {
    width: 16.66666667%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 20px;
    top: 76px; /* 顶部导航栏高度 + 间距 */
    bottom: 20px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 10px #0000001a;
    z-index: 100;
    max-width: 270px;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.sidebar-AIFrontier,
.sidebar-RapidProfit,
.sidebar-Workflow {
    display: none; /* 默认隐藏，根据标签显示 */
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.sidebar-item-sub {
    float: left;
}

/* 当前选中的侧边栏内容显示 */
.sidebar-AIFrontier.active,
.sidebar-RapidProfit.active,
.sidebar-Workflow.active {
    display: flex;
}

.sidebar-item {
    padding: 24px 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.sidebar-item.active {
    background-color: #409eff;
    color: #fff;
}


/* 右侧内容区 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    border-radius: 16px;
    max-width: 1480px;
    margin: 0 auto;
}

/* 标签栏样式 */
.tab-bar {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 标签栏样式优化 */
.sidebar-item-sub {
    color: #4fa8ff;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 14px;
    transition: all 0.2s ease;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    margin-right: 10px;
}
.sidebar-item-sub:hover {
    color: #409eff;
    position: relative;
    top: -1px;
}
.sidebar-item-sub.selected {
    color: #409eff;
    border-bottom: 2px solid #409eff;
}

.search-box {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
}
.search-box input {
    width: 320px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 35px 0 15px; /* 为内部图标留出空间 */
    font-size: 13px;
    outline: none !important;
}
.search-box input:focus {
    border-color: #409eff;
}
.search-box .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer; /* 使图标可点击 */
}
.search-box .delete-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer; /* 使图标可点击 */
    display: none; /* 默认隐藏删除图标 */
}
.content-box {
    padding: 0 6px 24px 24px;
}
.card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-height: 300px;
    max-height: calc(100vh - 214px);
    overflow: auto;
    padding-right: 18px;
    align-items: start;
    padding-top: 6px;
    margin-top: 18px;
    flex: 1;
    align-self: stretch;
}

/* 优化滚动条样式 */
.card-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.card-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 1530px) {
    .card-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {
    .card-list {
        grid-template-columns: 1fr;
    }
}

/* 单个卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 卡片图片容器 */
.card-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .card-img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #ff9500;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 0 4px 4px 0;
}

/* 价格标签样式 */
.card-price {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: #ff9500;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px 0 0 4px;
}

/* 新标签样式 */
.card-new-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ff3b30;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.card-content {
    padding: 15px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}
.card-author {
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.Project_section{
    background: #FFFFFF;
    transition: transform 0.5s ease;
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    box-shadow: 0 4px 12px #0000000d;
    border: 1px solid #f1f5f9;
    &:hover{
        box-shadow: 0 3px 10px rgba(33, 47, 45, .12);
    }
}

.Pro_Content{
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #EFEFEF;
    .pro_Details{
        margin-left: 16px;
        flex: 1;
        min-width: 0;
        .pro_title{
            font-size: 18px;
            color: #3D3D3D;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .carefully{
            font-size: 14px;
            color: #666666;
            margin: 12px 0px 4px 0px;
            line-height: 22px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-wrap: break-word;
            word-break: break-all;
        }
        .Number_join{
            margin: 0px;
            span{
                font-size: 12px;
                color: #999999;
            }
            img{
                position: relative;
                top: 3px;
            }
        }
    }
}

.Join_now{
    width: 80px;
    height: 28px;
    background: #3dbcee;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #3dbcee;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 28px;
    float: right;
    box-sizing: content-box;
    margin: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.Join_now:hover {
    background: #23bbf7;
    border-color: #23bbf7;
}

.pro_img{
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.pro_img0{
    background-image: url(../img/sz_dsxz_logo.png);
}
.pro_img1{
    background-image: url(../img/sz_lwcc_logo.png);
}
.pro_img2{
    background-image: url(../img/sz_aigcjc_logo.png);
}
.pro_img3{
    background-image: url(../img/sz_zic_logo.png);
}
.pro_img4{
    background-image: url(../img/sz_txai_logo.png);
}
.pro_img5{
    background-image: url(../img/sz_rgjc_logo.png);
}
.pro_img6{
    background-image: url(../img/sz_wxxz_logo.png);
}
.pro_img7{
    background-image: url(../img/sz_ppt_logo.png);
}
.pro_img8{
    background-image: url(../img/sz_sci_logo.png);
}
.number_img{
    display: inline-block;
    width: 40px;
    height: 16px;
    background-repeat: no-repeat;
    margin-right: 8px;
    position: relative;
    top: 3px;
}
.number_img0{
     background-image: url(../img/group01.png);
}
.number_img1{
     background-image: url(../img/group02.png);
}
.number_img2{
     background-image: url(../img/group03.png);
}
.number_img3{
     background-image: url(../img/group04.png);
}
.number_img4{
     background-image: url(../img/group05.png);
}
.number_img5{
     background-image: url(../img/group06.png);
}
.number_img6{
     background-image: url(../img/group07.png);
}
.number_img7{
     background-image: url(../img/group08.png);
}
.number_img8{
     background-image: url(../img/group09.png);
}

.implement_content{
    padding: 12px;
    display: block;
    img{
        width: 100%;
        aspect-ratio: 6 / 2.6;
    }
}
.implement_title{
    font-weight: 700;
    font-size: 16px;
    color: #303133;
    margin: 12px 8px 8px;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}
.implement_intro{
    font-size: 12px;
    color: #999999;
    margin: 0px 8px;
    height: 30px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    p{
        margin: 0px;
    }
}
.implement_Details{
    overflow: hidden;
    .Number_join{
        margin: 20px 20px 22px;
        float: left;
        span{
            font-size: 12px;
            color: #999999;
        }
        img{
            position: relative;
            top: 3px;
        }
    }
}

.Workflow-card-list {
    column-count: 4;
    column-gap: 20px;
    width: 100%;
    min-height: 300px;
}

.tool-item {
    width: 100%;
    border-radius: 9px;
    padding: 12px;
    position: relative;
    transition: all .3s;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    box-shadow: 0 4px 12px #0000000d;
    border: 1px solid #f1f5f9;
}

.tool-item:hover {
    box-shadow: 0 3px 10px rgba(33, 47, 45, .12);
}

.haveUrl {
    cursor: pointer;
}

.haveUrl .tool-img:hover {
    position: relative;
}

.haveUrl .tool-img:hover img {
    transform: scale(1.1);
    overflow: hidden;
    filter: brightness(50%);
}

.haveUrl .tool-img:hover .floating {
    opacity: 1;
    line-height: 40px;
    z-index: 888;
    border-radius: 10px;
    color: #F8E6E6;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.haveUrl .tool-img:hover .floating::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: #F8E6E6;
}

.floating {
    opacity: 0;
    position: absolute;
}

.tool-img {
    overflow: hidden;
}

.tool-img img {
    width: 100%;
    aspect-ratio: 6/2.6;
    box-sizing: border-box;
    transition: 0.3s;
    position: relative;
    vertical-align: middle;
    z-index: 1;
}

.tool-content-b .name-box {
    position: relative;
}

.tool-content-b .name-box .tool-name {
    color: #303133;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 76%;
    margin: 10px 0;
}

.tool-content-b .name-box .tool-identity {
    position: absolute;
    right: 0;
    font-size: 12px;
    color: #ffffff;
    padding: 2px 6px 2px;
    border-radius: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tool-identity.free {
    background: #42CFA2;
    padding: 2px 6px 1px;
    border-radius: 20px;
}

.tool-identity.vip {
    background: #FE9B3F;
}

.tool-identity.svip {
    background: #8B8BDB;
}

.tool-introduce {
    font-size: 12px;
    color: #999;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: normal;
    margin-bottom: 10px;
}

.tool-tag {
    margin: 12px 0;
}

.tag-item {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
    margin-right: 20px;
}

.tag-item.gzl {
    background: #EEFAF5;
    color: #54B3A7;
}

.tag-item.gjx {
    background: #F0F7FF;
    color: #60A5FA;
}

.tag-item.szr {
    background: #F3F0FF;
    color: #8469FF;
}

.target {
    background: #F6F3FF;
    border: 1px solid #D3CAFF;
    color: #409eff;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-family: Microsoft YaHei;
}

.target-item {
    background: linear-gradient(135deg,#f3e8ff,#ede9fe);
    color: #409eff;
    font-size: 12px;
    border-radius: 20px;
    line-height: 1;
    border: 1px solid rgba(139,92,246,.2);
    padding: 3px 6px;
}

.target-item:hover {
    background: #E0D8FF;
}

.target-item a {
    color: inherit;
    text-decoration: none;
}

.tool-operation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.watch-domo {
    background: #667EEA;
    width: 48%;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    border-radius: 4px;
    border: none;
    height: 36px;
    line-height: 36px;
    position: relative;
    cursor: pointer;
}

.watch-domo.no-demo {
    background: #667eea82;
    cursor: no-drop;
}

.watch-domo.no-demo:hover {
    background: #667eea82;
}

.watch-domo:hover {
    background: #5874F5;
}

.watch-domo span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.get-tool {
    background: #10B981;
    width: 48%;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    border-radius: 4px;
    border: none;
    height: 36px;
    cursor: pointer;
}

.get-tool.no-demo {
    width: 100%;
}

.get-tool:hover {
    background: #10AF7A;
}

.pg-tool {
    background: #ff8000;
    width: 48%;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    border-radius: 4px;
    border: none;
    height: 36px;
}

.pg-tool.no-demo {
    width: 100%;
}

.pg-tool:hover {
    background: #ff8d1c;
}

.edit-tool {
    font-size: 12px;
    color: #12B8F4;
    text-align: right;
    display: block;
    line-height: 20px;
    cursor: pointer;
}

.edit-tool:hover {
    color: #0692c5;
}