/**
 * AI提示词宝库 - AI工具页面响应式样式
 */


/* 平板适配 */
@media (max-width: 991px) {
    .featured-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* 移动端适配 */
@media (max-width: 767px) {

    /* 工具导航响应式 */
    .tools-nav {
        padding: 0.8rem 0;
        top: var(--mobile-header-height, var(--header-height));
    }

    .tools-nav-scroll {
        padding: 0 1rem;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tools-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* 工具头部响应式 */
    .tools-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .tools-header h2 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .tools-filter {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
    }

    .tools-filter label {
        font-size: 0.9rem;
    }

    .tools-filter select {
        flex: 0 1 auto;
        min-width: 140px;
        max-width: 200px;
        font-size: 0.9rem;
        padding: 0.4rem 1.8rem 0.4rem 0.8rem;
    }

    /* 提交工具区域响应式 */
    .submit-tool {
        padding: 2.5rem 1rem;
    }

    .submit-tool-content h2 {
        font-size: 1.6rem;
    }

    .submit-tool-content p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .submit-tool .btn-primary {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    /* 工具卡片响应式 */
    .tool-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .tool-actions .btn {
        width: 100%;
    }
}


/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .featured-tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-image {
        height: 160px;
    }

    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}