/* 加载层隐藏样式，有就保留，没有也不用加 */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.3s ease;
}

        /* 加载GIF样式 */
        #loader-gif {
            width: 80px; /* 可根据GIF尺寸调整 */
            height: 80px;
            margin-bottom: 15px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        /* 加载文字样式 */
        #loader-text {
            font-size: 16px;
            color: #333333;
            font-family: "Helvetica Neue", sans-serif;
            text-shadow: 0 1px 2px rgba(255,255,255,0.8);
        }

        /* 加载完成后隐藏的样式 */
        #loader-wrapper.hidden {
            opacity: 0;
            pointer-events: none; /* 隐藏后不响应点击 */
        }

        /* ========== 核心修改：热门AI工具区域全屏样式 ========== */
        .ai-tools-section {
            width: 100vw; /* 强制占满视口宽度 */
            min-width: 100%; /* 防止宽度收缩 */
            background-color: #f8f8f9; /* 浅灰背景更适配全屏 */
            color: #333;
            padding: 5rem 2%; /* 左右小内边距，适配全屏 */
            margin: 0; /* 移除自动居中的margin */
            box-sizing: border-box; /* 内边距不影响宽度 */
        }

        /* 标题容器 - 居中标题和标签栏 */
        .ai-tools-header {
            max-width: 1400px; /* 内容最大宽度，避免超大屏拉伸 */
            margin: 0 auto 2rem; /* 水平居中，底部间距 */
        }

        /* 标题样式 */
        .ai-tools-title {
            font-size: 2.2rem; /* 放大标题，适配全屏 */
            font-weight: 700;
            color: #000;
            margin-bottom: 2rem;
            line-height: 1.2;
        }

        /* 标签栏样式 */
        .ai-tools-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 3rem; /* 增加底部间距，全屏更舒展 */
            flex-wrap: wrap;
        }

        .ai-tools-tab {
            padding: 0.7rem 1.5rem; /* 放大标签按钮 */
            background-color: #fff;
            color: #333;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1rem; /* 放大字体 */
            transition: all 0.3s;
            border: 1px solid #eee;
            outline: none;
        }

        .ai-tools-tab.active {
            background-color: #0071e3;
            color: #fff;
            border-color: #0071e3;
        }

        .ai-tools-tab:hover {
            background-color: #f0f0f2;
        }

        .ai-tools-tab.active:hover {
            background-color: #0077ed;
        }

        /* 工具卡片容器 - 居中卡片网格 */
        .ai-tools-grid-container {
            max-width: 1400px; /* 卡片区域最大宽度 */
            margin: 0 auto; /* 水平居中 */
            padding: 0 1rem;
        }

        /* 工具卡片网格 - 优化全屏布局 */
        .ai-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* 自适应列数，最小卡片宽度320px */
            gap: 2rem; /* 增大卡片间距，全屏更美观 */
        }

        /* 工具卡片样式 - 放大适配全屏 */
        .ai-tool-card {
            background-color: #fff;
            border-radius: 12px; /* 更大圆角 */
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            text-decoration: none;
            color: #333;
            height: 100%; /* 卡片高度一致 */
            display: flex;
            flex-direction: column;
        }

        .ai-tool-card:hover {
            transform: translateY(-6px); /* 增大hover上移距离 */
            box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* 增强阴影 */
        }

        /* 卡片图片容器 - 放大图片区域 */
        .tool-card-img {
            width: 100%;
            height: 200px; /* 增高图片区域，适配全屏 */
            overflow: hidden;
        }

        .tool-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease; /* 放慢缩放动画 */
        }

        .ai-tool-card:hover .tool-card-img img {
            transform: scale(1.08); /* 增大图片缩放比例 */
        }

        /* 卡片内容 - 优化内边距 */
        .tool-card-content {
            padding: 1.5rem; /* 增大内边距 */
            flex: 1; /* 内容区域自动填充 */
            display: flex;
            flex-direction: column;
        }

        .tool-card-name {
            font-size: 1.2rem; /* 放大工具名称 */
            font-weight: 600;
            margin-bottom: 0.8rem;
            color: #000;
        }

        .tool-card-desc {
            font-size: 0.95rem; /* 放大描述文字 */
            color: #555;
            line-height: 1.6;
            margin-bottom: 1.2rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1; /* 描述占满剩余空间 */
        }

        .tool-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: #888;
            margin-top: auto; /* 元信息固定在底部 */
        }

        .tool-card-cat {
            background-color: #f0f0f2;
            padding: 0.3rem 0.8rem;
            border-radius: 6px;
            font-weight: 500;
        }

        .tool-card-hot {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .tool-card-hot::before {
            content: "🔥";
            font-size: 0.8rem;
        }

        /* 响应式适配 - 全屏AI工具区域 */
        @media (max-width: 1400px) {
            .ai-tools-grid {
                gap: 1.8rem;
            }
        }

        @media (max-width: 1024px) {
            .ai-tools-title {
                font-size: 1.8rem;
            }
            .ai-tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.5rem;
            }
            .tool-card-img {
                height: 180px;
            }
        }

        @media (max-width: 768px) {
            .ai-tools-section {
                padding: 3rem 3%;
            }
            .ai-tools-title {
                font-size: 1.6rem;
                text-align: center;
            }
            .ai-tools-tabs {
                justify-content: center;
                gap: 0.8rem;
                margin-bottom: 2rem;
            }
            .ai-tools-tab {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }
            .ai-tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 1.2rem;
            }
            .tool-card-img {
                height: 160px;
            }
        }

        @media (max-width: 480px) {
            .ai-tools-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .tool-card-img {
                height: 150px;
            }
            .ai-tools-title {
                font-size: 1.4rem;
            }
        }