body.ai-navigation-page, body.single-ai-tool-page, body.single-ai-tutorial-page, body.taxonomy-ai-tool-page, body.taxonomy-ai-tutorial-page, body.search-ai-tool-page {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}
.big-header-banner {
    display: none !important;
}
.main-content.flex-fill {
    background: linear-gradient(180deg, #f1f4ff, #fafafa), #fafafa;
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100% 500px, 100%;
}

.ai-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #ffffffa6;
    backdrop-filter: blur(var(--backdropFilter, 7px));	
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 45px;
    width: 100%;
    margin: 0 auto;
}
.ai-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    margin: 0px auto;
}
.ai-nav, .homeai-nav-content, .ai-nav-content {
    max-width: 1500px;
}
.ai-nav-logo img {
    height: 30px;
}
a:hover {
    color: #7f7f81 !important;
}
.ai-nav-menu {
    position: relative;
}
.ai-nav-user {
    min-width: 135px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-nav-menu .ai-nav-menu-items {
    display: flex;
    gap: 65px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-nav-menu .ai-nav-menu-items li {
    position: relative;
}

.ai-nav-menu .ai-nav-menu-items a {
    color: #000000;
    text-decoration: none;
    line-height: 45px;
}

.ai-nav-menu .ai-nav-menu-items .sub-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    min-width: 150px;
}

.ai-nav-menu .ai-nav-menu-items li:hover .sub-menu {
    display: block;
}

.ai-nav-menu .ai-nav-menu-items .sub-menu li {
    margin: 0;
}

.ai-nav-menu .ai-nav-menu-items .sub-menu a {
    line-height: 30px;
}

.ai-nav-user .login-btn, .ai-nav-user span {
    color: #000000;
    text-decoration: none;
}

.ai-nav-search {
    margin-left: -5px;
    text-align: center;
    margin-bottom: 23px;
    margin-top: -10px;
    width: 100%;
    margin-right: auto;
}

.ai-nav-search h2 {
    color: aliceblue;
    font-size: 36px;
}
.ai-navsearch {
    z-index: 1;
    padding: 130px 0px 78px 0px;
    position: absolute;
    margin: auto;
    width: 100%;
}
.ai-nav-search .search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ai-nav-search .search-input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #efefef;
    border-radius: 8px;
    box-shadow: 0 51px 78px 0 rgba(17, 7, 53, .05), 0 21.307px 35.494px 0 rgba(17, 7, 53, .04), 0 11.392px 18.942px 0 rgba(17, 7, 53, .03), inset 0 1px 0 0 rgba(41, 56, 78, .05);
}

.ai-nav-search button {
    margin: 4px 0px 4px -72px;
    padding: 8px 12px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 9px;
}

.homeai-nav-content {
    display: flex;
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
}

.ai-nav-content {
    display: flex;
    width: 100%;
    margin: 50px auto;
    flex-direction: column;
    margin-top: 75px;
    padding: 0 15px;
}

.ai-nav-main {
    flex: 1;
    padding-right: 20px;
}

.ai-nav-ads {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.ai-nav-ads .ad-item, .ai-tool-item, .ai-nav-sidebar {
    box-shadow: 0 51px 78px 0 rgb(17 7 53 / 3%), 0 21.307px 35.494px 0 rgb(17 7 53 / 3%), 0 11.392px 18.942px 0 rgb(17 7 53 / 0%), inset 0 1px 0 0 rgb(43 54 70 / 5%);
    border-radius: 8px;
}
.ai-nav-ads .ad-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 10px;
    background: #fff;
    text-decoration: none;
    color: #333;
}

.ai-nav-ads .ad-item img {
    width: 40px;
    height: 40px;
    margin: 5px 0px 0px 0px;
}
.ai-nav-tabsfilter {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    box-shadow: 0 51px 78px 0 rgb(17 7 53 / 3%), 0 21.307px 35.494px 0 rgb(17 7 53 / 3%), 0 11.392px 18.942px 0 rgb(17 7 53 / 0%), inset 0 1px 0 0 rgb(43 54 70 / 5%);
    border-radius: 8px;
    background: #fff;
    padding: 9px;
    position: relative;
    margin-bottom: 20px;   
}

.ai-nav-tabs .tab {
    border-radius: 8px;
    padding: 1px 14px;
    border: none;
    background: #eee;
    color: #212529;
    cursor: pointer;
    margin-right: 9px;
}

.ai-nav-tabs .tab.active,.ai-tutorial-cat-filter.active {
    background: #000000;
    color: #fff;
}

.ai-tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.ai-tutorial-item, .ai-tutorials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    /*gap: 20px;*/
}
.ai-tool-item {
    background: #fff;
    padding: 15px;
    position: relative;
}
.ai-tool-itemimg {
    width: 100%;
}
.ai-tool-item:hover .ai-tool-icon-link {
    display: block;
}
/* 手机端优化：禁用 icon 链接的触摸拦截 
@media (max-width: 768px) {
    .ai-tool-icon-link {
        pointer-events: none; 
        opacity: 0 !important; 
        visibility: hidden !important;
    }

    .ai-tool-link {
        pointer-events: auto; 
    }
}*/
.ai-tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-tool-header img {
    width: 40px;
    height: 40px;
}

.ai-tool-header h3 {
    font-size: 18px;
    margin: 0;
}

.ai-tools-list p {
    min-height: 55px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}
.ai-tool-item p {
    font-size: 14px;
    color: #666;
}

.ai-tool-icon-link {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
}

.ai-tool-icon-link i {
    font-size: 20px;
    color: #b9b9b9;
}
.ai-tool-icon-link i:hover {
    color: #000000;
}
.ai-nav-sidebar {
    width: 300px;
    background: #fff;
    padding: 20px;
}

.ai-tool-header-section {
    padding: 20px;
    border-radius: 4px;
    margin: 50px auto;
    max-width: 1500px;
    width: 100%;
}

.ai-breadcrumbs,.ai-tool-info,.ai-breadcrumds-main {
    padding: 8px;
}

.ai-tool-info {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.ai-tool-main {
    flex: 1;
    max-width: 633px;
    margin-right: 10px;
}
.ai-tool-mainh1 h1 {
    margin-right: 15px;
    word-break: break-all;
}
.ai-tool-main p {
    margin: 12px 0px;
}
.ai-tool-main .ai-tool-tags {
    margin: 15px 0px;
}
.ai-tool-mainh1 {
    display: flex;
    align-items: center;
}
a.visit-btn {
    min-width: 120px;
    display: inline-block;
    padding: 5px 10px;
    background: #000000;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.ai-tool-preview img {
    max-width: 600px;
    border-radius: 8px;
    max-height: 322px;
}

.ai-tool-nav {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    margin: 50px auto;
    width: 100%;
}

.ai-tool-nav.sticky {
    max-width: 1500px;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

p.ai-tool-other-links a {
    display: inline-block;
    padding: 5px 10px;
    background: #000000;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    color: #ffffff;
}

.ai-tool-nav a {
    color: #000000;
    text-decoration: none;
}

.ai-tool-nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #000000;
}

.ai-tool-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 50px auto;
    width: 100%;
}

.ai-tool-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.ai-tool-tags {
    overflow-x: auto;
    white-space: nowrap;
}
.ai-tool-tags a {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
}

.price-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.price-item h3 {
    margin: 0 0 10px;
}

.ai-tutorial-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 50px auto;
    width: 100%;
}

.ai-tutorial-info img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ai-related-tutorials {
    margin: 50px auto;
    width: 100%;
}

div#tool-info p {
    margin: 15px 0px;
}
.ai-related-tutorials h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.ai-tutorial-item {
    display: flex;
    background: #fff;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
a.ai-tutorial-link {
    display: flex;
    flex-direction: row;
}
.widget.widget_ai_nav_news_widget h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 1.08rem;
    margin-bottom: 16px;
}
.ai-tutorial-content a.ai-tutorial-link {
    display: flex;
    flex-direction: column;
}
aside.ai-nav-sidebar .ai-tutorial-cover {
    margin-right: 10px;
}
aside.ai-nav-sidebar .ai-tutorial-content,div#related-tutorials .ai-tutorial-content {
    padding: 0px;
}aside.ai-nav-sidebar .ai-tutorial-content h3 {
    margin: 0 0 5px;
    font-size: 13px;
    height: 48px;
}     
aside.ai-nav-sidebar .ai-tutorial-content .desc {
    display: none;
}   
.ai-tutorial-cover {
    width: 80px;
    margin-right: 20px;
}

.ai-tutorial-cover img {
    width: 100%;
    border-radius: 4px;
}

.ai-tutorial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-tutorial-content h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.ai-tutorial-content .desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ai-tutorial-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ai-tutorial-meta .tool-icon {
    width: 15px;
    height: 15px;
}

.ai-tutorial-meta .time, .ai-tutorial-meta .platform-author {
    font-size: 12px;
    color: #999;
}

/* 自适应布局 */
@media screen and (max-width: 1440px) {
    .ai-nav-content {
        width: 100%;
    }
    .ai-nav-search .search-input {
        width: 70%;
    }
}
@media screen and (min-width: 1467px) {
    .ai-nav-ads {
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    } 
}   
@media screen and (max-width: 1291px) {
     .ai-nav-ads {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }    
}
    
@media screen and (min-width: 1251px) {
    .ai-tool-info {
        /*height: 310px;*/
    }  
    .ai-nav-ads .ad-item {
        flex-direction: column;
    }
    .ai-tool-main p span {
    margin-right: 25px;
}.ai-tool-header-section .ai-tool-tags {
    gap: 6px;
    display: flex;
   flex-wrap: wrap;
}
}     
@media screen and (max-width: 1250px) {   
    .ai-tool-info {
        flex-direction: column;
    }
    .ai-tool-preview img {
        max-width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .ai-nav-content {
        flex-direction: column;
    }
    .ai-nav-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    .ai-tools-list, .ai-tutorials-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .ai-tutorial-item {
        flex-direction: column;
    }
    .ai-tutorial-cover {
        margin-right: 0;
        margin-bottom: 10px;
    }
     .ai-tool-icon-link {
     display: block !important;
     }
}

@media screen and (max-width: 768px) {
    .ai-nav-header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .ai-nav-menu .ai-nav-menu-items {
        flex-direction: column;
        align-items: center;
    }
    .ai-nav-menu .ai-nav-menu-items .sub-menu {
        position: static;
        width: 100%;
    }
    .ai-nav-search .search-input {
        width: 90%;
    }
    .ai-tool-nav {
        flex-wrap: wrap;
    }
    /* 优化移动端菜单显示 */
    .ai-nav-mobile-toggle {
        display: block !important; /* 确保菜单按钮显示 */
        z-index: 1002; /* 提高层级，防止被覆盖 */
    }
    .ai-nav-mobile-menu {
        left: -100% !important; /* 初始隐藏状态 */
        transition: left 0.3s ease-in-out !important; /* 确保平滑过渡 */
    }
    .ai-nav-mobile-menu.active {
        left: 0 !important; /* 显示时移到屏幕内 */
        display: block !important; /* 明确设置显示 */
    }
    .ai-nav-mobile-overlay {
        display: none !important; /* 初始隐藏遮罩层 */
    }
    .ai-nav-mobile-overlay.active {
        display: block !important; /* 显示遮罩层 */
    }
}

@media screen and (max-width: 360px) {
    .ai-tools-list, .ai-tutorials-list {
        grid-template-columns: 1fr;
    }
    .ai-nav-search h2 {
        font-size: 20px;
    }
    .ai-nav-search .search-input {
        width: 100%;
    }
}

/* 隐藏原主题顶部栏 */
header:not(.ai-nav-header), .site-header, .header, #masthead, #header {
    display: none !important;
}
.header-search-form {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.header-search-form .search-input {
    width: 200px;
    height: 35px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #c9d3df;
    border-radius: 4px;
}

.header-search-form button {
    font-size: 12px;
    padding: 5px 10px;
    margin-left: -45px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.ai-nav-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 0;
    scroll-behavior: smooth;
}
.ai-product-type-filter {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.ai-product-type-filter label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-popular-tools, .ai-sub-categories {
    margin: 3px 0;
    display: flex;
    align-items: baseline;
}
.ai-popular-tools {
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ai-sub-categories ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    align-items: center;
}

.ai-sub-categories li a {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.ai-tools-pagination {
    margin-top: 20px;
    text-align: center;
}

.ai-tools-pagination a,.ai-tutorials-pagination a {
    display: inline-block;
    padding: 0px 10px;
    margin: 0 5px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
span.page-numbers.current {
    display: inline-block;
    padding: 0px 10px;
    margin: 0 5px;
    background: #161616;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
}
.ai-tools-pagination a:hover,.ai-tutorials-pagination a:hover {
    background: #ddd;
}

/* 修改产品类型筛选样式为与 tab 一致 */
.ai-product-type-filter label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-product-type-filter input[type="checkbox"] {
    display: none;
}

.ai-product-type-filter label span {
    border-radius: 8px;
    padding: 1px 14px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.ai-product-type-filter input:checked + span {
    background: #000000;
    color: #fff;
}

/* 侧边菜单样式 */
.ai-nav-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.ai-nav-mobile-menu.active {
    left: 0 !important; /* 提高优先级，确保显示 */
    display: block !important; /* 明确设置显示 */
}

.ai-nav-mobile-menu .mobile-search-form {
    margin-bottom: 20px;
}

.ai-nav-mobile-menu .mobile-search-form .search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #efefef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-nav-mobile-menu .mobile-search-form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ai-nav-mobile-menu .mobile-menu-items {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    height: 80%;
}

.ai-nav-mobile-menu .mobile-menu-items li {
    margin-bottom: 10px;
}

.ai-nav-mobile-menu .mobile-menu-items a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.ai-nav-mobile-menu .mobile-menu-items .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.ai-nav-mobile-menu .mobile-menu-items .sub-menu a {
    font-size: 14px;
    color: #666;
}

.ai-nav-mobile-menu .mobile-user {
    margin-top: 20px;
}

.ai-nav-mobile-menu .mobile-user a, .ai-nav-mobile-menu .mobile-user span {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.ai-nav-mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* 遮罩层 */
.ai-nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.ai-nav-mobile-overlay.active {
    display: block !important; /* 提高优先级，确保显示 */
}

/* 平板及以下设备样式 */
@media screen and (max-width: 768px) {
    .ai-nav-header .ai-nav {
        justify-content: space-between;
        align-items: center;
    }

    .ai-nav-header .ai-nav-menu,
    .ai-nav-header .ai-nav-user {
        display: none;
    }
    .ai-nav-mobile-toggle {
        display: block !important; /* 确保菜单按钮显示 */
        z-index: 1002; /* 提高层级 */
    }
    .homeai-nav-content {
        margin: 12px auto;
    }    
    .ai-nav-main {
        padding-right: 0px;
    }
    .homeai-nav-content {
        flex-direction: column;
    }  
    .ai-nav-ads {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 0;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        flex-direction: row;
        /*display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;*/
    }     
    .ai-nav-ads .ad-item {
        gap: 13px;
        max-width: 100% !important;
        border: 1px solid #dddddd6b;
        /*max-width: 50% !important;*/
    } 
    .homeai-nav-content {
        padding: 0 15px;
    }
    .ai-nav-search h2 {
        color: aliceblue;
        font-size: 29px;
        margin-bottom: 5px;
    }
    iframe#animationFrame {
        margin-left: -10px;
        width: 140% !important;
        height: 305px !important;
    }
    .ai-navsearch {
        padding: 90px 28px 28px 28px;
    }
    .ai-nav-workflows {
        padding: 1rem!important;  
    }
    .ai-workflow-item img {
        display: none !important;
    }
}


/* 新增样式：相关教程分类筛选和分页 */
.tutorials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-tutorial-cat-filters {
    display: flex;
    gap: 10px;
}

.ai-tutorial-cat-filter {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.ai-tutorial-cat-filter:hover {
    background-color: #e0e0e0;
}

.ai-tutorials-pagination {
    margin-top: 20px;
    text-align: center;
}


/* assets/css/ai-navigation.css */

/* AI快讯小工具 */
.ai-news-widget {
    margin-bottom: 20px;
}

.ai-news-widget .ai-tutorial-cat-filters {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-news-widget .ai-tutorial-cat-filters a {
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: all 0.3s ease;
}

.ai-news-widget .ai-tutorial-cat-filters a.active,
.ai-news-widget .ai-tutorial-cat-filters a:hover {
    background-color: #000000;
    color: #fff;
    border-color: #000000
}

.ai-news-widget .ai-tutorials-list {
    display: grid;
    gap: 8px;
}

.ai-tutorial-item {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-tutorial-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ai-tutorial-link {
    display: flex;
    /*width: 100%;*/
    text-decoration: none;
    color: #333;
}

.ai-tutorial-cover {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
}

.ai-tutorial-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-tutorial-content {
    padding: 10px;
    flex-grow: 1;
}

.ai-tutorial-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
    /*font-weight: 600;*/
}

.ai-tutorial-content .desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

.ai-tutorial-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
    color: #999;
}
.ai-news-widget .ai-tutorial-meta {
    margin: auto -78px;
}    
.ai-tutorial-meta .tool-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.ai-tutorial-meta .time,
.ai-tutorial-meta .platform-author {
    white-space: nowrap;
}



.ai-latest-tutorial {
    position: relative;
}

.ai-tutorial-item {
    position: relative;
}

.ai-tutorial-more-btn {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    bottom: 0;
    height: 24px;
    width: 92px;
    text-align: center;
    z-index: 10;
}

.ai-latest-tutorial:hover .ai-tutorial-more-btn {
    display: block;
}

.ai-tutorial-more-btn button {
    width: 100%;
    background: #000000;
    border: none;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 5px 0px 5px 0px;
}
.ai-tool-info .ai-tutorial-item:hover {
    border: 1px solid #eeeeee;
    background: #ffffff;
}
.ai-tool-info .ai-tutorial-content {
    padding: 0px;
}
.ai-tool-info .ai-tutorial-item {
    background: #ffffff00;
    border: 1px solid #eeeeee00;
    padding: 5px;
}
.ai-tool-info .ai-tutorial-cover {
    width: 95px;
    height: 50px;
    margin-right: 20px;
}.ai-tool-info .ai-tutorial-content h3 {
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 39px;
}
.ai-tool-info .ai-tutorial-meta {
    margin-left: -115px;
}


.single .main-footer.footer-stick.container.container-fluid.customize-width.pt-4.pb-3.footer-type-big {
   display: block !important;
 }.footer-inner.card.rounded-xl.m-0 {
    padding: 0px 70px;
    background: #ffffff00;
    border-width: 0;
    box-shadow: 0px 0px 20px -5px rgb(158 158 158 / 0%);
}




/* 国内平替样式 */
#domestic-alternatives {
    margin-top: 2rem;
}

.alternatives-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.alternative-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.alternative-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.alternative-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.alternative-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 8px;
}

.alternative-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.alternative-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 工作流板块样式 */
.ai-nav-workflows {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ai-nav-workflows h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-workflow-tabsfilter {
    margin-bottom: 1.5rem;
}

.ai-workflow-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.workflow-tab {
    padding: 1px 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.workflow-tab:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.workflow-tab.active {
    background: #715dbb;
    color: #fff;
}

/* 瀑布流布局 
.ai-workflows-masonry {
    column-count: 4;
    column-gap: 1.5rem;
}

.ai-workflow-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}*/

/* 工作流瀑布流容器 */
.ai-workflows-list {
    width: 100%;
}

/* 工作流项目 - 移除所有 column 相关样式 */
.ai-workflow-item {
    width: calc(25% - 18px); /* 4列布局 */
    margin-bottom: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.ai-workflow-item:hover {
    transform: translateY(-5px);
}

.ai-workflow-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0px 0px;
}

.workflow-info {
    padding: 10px;
    background: #fff;
}
.workflow-info2,.workflow-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}.workflow-info2 span {
    width: 39px;
    font-size: 12px;
}.workflow-info2 i.iconfont.icon-down {
    margin-right: 5px;
}
/*.workflow-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}*/

.workflow-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .ai-workflow-item {
        width: calc(33.333% - 16px); /* 3列 */
    }
}

@media (max-width: 768px) {
    .ai-workflow-item {
        width: calc(50% - 12px); /* 2列 */
    }
}

@media (max-width: 480px) {
    .ai-workflow-item {
        width: 100%; /* 1列 */
    }
}
.ai-workflow-item{
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

span.workflow-type {
    padding: 0px 11px;
    background: #715dbb;
    color: #ecdbff;
    border-radius: 20px;
    font-size: 11px;
}
.ai-workflow-item:hover {
    transform: translateY(-4px);
}

/*.ai-workflow-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}*/

.workflow-info {
    padding: 1rem;
}

.workflow-info h4 {
    width: 100%;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
}

.workflow-info p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* 工作流弹窗样式 */
.workflow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.workflow-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.workflow-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.workflow-modal-close {
    position: absolute;
    top: 0rem;
    right: 0rem;
    width: 40px;
    height: 40px;
    background: rgb(0 0 0 / 0%);
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.workflow-modal-close:hover {
    /*background: rgba(0,0,0,0.8);*/
    transform: rotate(90deg);
}

.workflow-modal-body {
    display: flex;
    max-height: 85vh;
    overflow: auto;
}

.workflow-modal-left {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.workflow-modal-left img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.workflow-modal-right {
    flex: 0 0 350px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.workflow-modal-right h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #333;
}
.popup-line {
    width: 100%;
    background: #D8D8D8;
    height: 1px;
    margin: 0px 0px 15px 0px;
    flex-shrink: 0;
}
.workflow-modal-info {
    flex: 1;
    margin-bottom: 1.5rem;
}

.workflow-modal-info p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #666;
}

.ai-tool-main .workflow-modal-info strong {
    color: #333;
    display: inline-block;
    min-width: 80px;
}

.workflow-modal-info a {
    color: #667eea;
    text-decoration: none;
    margin-right: 0.5rem;
}

.workflow-modal-info a:hover {
    text-decoration: underline;
}

.workflow-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-modal-actions a {
    padding: 0.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download {
    background: #715dbb;
    color: #fff;
}

.btn-tutorials {
    background: #2f3744;
    color: #ffffff;
}

a#workflow-modal-download:hover,a#workflow-modal-tutorials:hover {
    color: #bfbfbf !important;
}

/* 教程列表中的工作流图标 */
.workflow-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workflow-icon:hover {
    transform: scale(1.1);
}

.workflow-icon-link {
    display: inline-block;
    line-height: 0;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .ai-workflows-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .alternatives-list {
        grid-template-columns: 1fr;
    }
    
    .ai-workflows-masonry {
        column-count: 2;
        column-gap: 1rem;
    }
    
    .ai-workflow-item {
        margin-bottom: 1rem;
    }
    
    .workflow-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .workflow-modal-body {
        flex-direction: column;
    }
    
    .workflow-modal-left {
        padding: 1rem;
    }
    
    .workflow-modal-right {
        flex: 1;
        padding: 1.5rem;
    }
    
    .workflow-tab {
        font-size: 0.85rem;
        padding: 1px 14px;
    }
}

@media (max-width: 480px) {
    .ai-workflows-masonry {
        column-count: 1;
    }
}

/* 工具详情页的教程图标可点击样式 */
.tool-icon-link,
.workflow-icon-link {
    display: inline-block;
    text-decoration: none;
}

.tool-icon,
.workflow-icon {
    transition: all 0.3s ease;
}

.tool-icon-link:hover .tool-icon,
.workflow-icon-link:hover .workflow-icon {
    transform: scale(1.1);
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 20px;*/
}