body{
    overflow-x: hidden;
}
.container aside{
    padding: 0px;
}
.container aside.aside_left{
    width: 320px;
}
.container aside.aside_right{
    width: 380px;
}

.container .row{
    display: flex;
}
.aside-right-fixed{
    position: fixed;
    right: 0;
    top: 68px;
    bottom: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
    z-index: 3;
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: #333;
}



/* 左侧导航栏样式 */
.ai-tool-nav {
    position: fixed;
    left: 0;
    top: 68px;
    bottom: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow-y: auto;
}

.nav-inner {
    padding: 1rem;
}

.nav-inner h2{
    padding-top: 0px;
    margin-top: 0px;
    text-align: center;
}

.category-group {
    margin-bottom: 1rem;
}

.category-group h3 {
    margin: 1rem 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

.tool-list {
    display: grid;
    gap: 0px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-color);
}

.tool-item:hover {
    background: var(--text-color);
    color: var(--card-bg);
}

.tool-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
}

.category-group h3 {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 0.5rem;
}

.more-link {

    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: center;
}

.more-link:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateX(4px);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0rem;
}

.tool-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-media {
    position: relative;
    height: 200px;
}



.tool-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover .tool-thumb {
    opacity: 0.5;
}

.tool-card:hover .tool-video {
    opacity: 1;
}

.tool-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #ff4757;
    color: white;
    z-index: 4;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    right: 0.5rem;
    height: 30px;
    top: 0rem;
    bottom: auto;
    border-radius: 10px;
    margin: 3px 0px;
}
@media screen and (min-width: 768px)  {
    .tool-meta {
        bottom: 0.5rem;
        top: auto;
    }
}

.tool-stats {
    display: flex;
    gap: 1rem;
    color: #666;
    align-items: center;
}



/* 调整工具卡片尺寸 */

.tool-media {
    height: 120px;
}

.tool-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
}

.tool-content {
    padding: 0rem 0.5rem;
    height: 200px;
    position: absolute;
    width: 100%;
    z-index: 3;
    bottom: 0px;
    background-color: #13474da1;
}

.tool-content p{
    font-size: 14px;
}

.comment-scroll {
    z-index: 4;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 30px;
    /* 缩减高度为单行 */
    overflow: hidden;
    border-radius: 4px;
    /* 减小圆角 */
}

.comment-scroll .tags{
    background-color: transparent;
    color: var(--card-bg)!important;
    padding: 0.5rem;
    border-radius: 8px;
}

.comment-scroll .tags:hover{

    color: var(--text-color);
}

.comment-list {
    /* animation: commentScroll 10s infinite linear; */
    padding: 0 1rem;
    line-height: 20px;
    /* 单行文本对齐 */
}

.comment-list div {

    color: #666;
    font-size: 14px;
}

@keyframes commentScroll {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(calc(-100% + 20px))
    }
}

/* 调整卡片尺寸 */
.tool-card {
    margin-bottom: 0.5rem;
    min-height: 200px;
    /* 固定卡片高度 */
}

.tool-media {
    height: 200px;
    /* 缩减媒体区高度 */
}

.tool-stats {
    flex-direction: row;
    /* 横向排列数据 */
    gap: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--card-bg);
}

.tool-meta .btn-more {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.tool-content a,.tool-content a:hover{
    text-decoration: none;
}

.text-desc{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    padding: 0px 0.5rem;
    color: var(--card-bg);
}



.tool-link h3 {
    font-weight: bold;
    font-size: 17px;
    padding: 36px 10px 0px 10px;
    color: var(--card-bg);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 推荐轮播样式 */
.recommend-swiper {
    margin-bottom: 1rem;
    height: 172px;
    /* 根据比例计算的高度 */
}

.recommend-card {
    position: relative;
    width: 300px;
    height: 0;
    padding-top: 56.25%;
    /* 16:9比例 */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recommend-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.recommend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.recommend-card[data-tag="hot"]::before {
    background-image: url('images/default-tools.jpg');
}

.recommend-card h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}


/*头部详情*/
.ai-tool-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 1rem auto;
}

.tool-desc{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}


.article-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}

@media (min-width: 768px) {
    .article-header {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
    }
}

.tool-poster {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-poster:hover {
    transform: scale(1.02);
}

/* 增强评分系统 */
.rating {
    background: linear-gradient(45deg, #ffd700, #ffb400);
    padding: 8px 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 新增悬浮效果 */
.tutorial-thumb {
    position: relative;
    overflow: hidden;
}

.tutorial-thumb::after {
    content: "查看教程";
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.tutorial-thumb:hover::after {
    bottom: 0;
}

/* 新增同类工具样式 */
.similar-tools {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tool-card-inner {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tool-thumb {
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tool-card-content {
    padding: 1.5rem;
}

.tool-card-content h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.tool-meta a.btn-primary {
    background: linear-gradient(45deg, #0066ff, #00c3ff);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 99, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-meta a.btn-primary::after {
    content: "➔";
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-meta a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 99, 255, 0.3);
    padding-right: 24px;
}

.tool-meta a.btn-primary:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.tool-meta a.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 99, 255, 0.2);
}

.tool-meta a.btn-primary i {
    margin-right: 8px;
    font-size: 1.1em;
}

.link-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.link-button {
    padding: 8px 15px;
    border-radius: 20px;
    background: #f0f2f5;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.link-button:hover {
    background: #4a5568;
    color: white;
    transform: translateY(-2px);
}

.link-button.netdisk {
    background: #357ae8;
    color: white;
    border-color: transparent;
}
@media screen and (min-width: 1200px)  {
    .tool-grid {
        grid-template-columns: repeat(5, minmax(150px, 1fr));
    }
}