﻿/* AI工具页面样式 - 完全无边框设计 */

/* 页面头部样式 */
.tools-hero {
    background-color: #1e3a8a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.tools-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tools-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.tools-search {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: #f84c71;
    color: white;
    padding: 0 25px;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #e6335c;
}

.tools-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tools-category {
    padding: 8px 20px;
    margin: 0 10px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tools-category:hover,
.tools-category.active {
    background-color: white;
    color: #1e3a8a;
}

/* 工具列表区域 */
.tools-list {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.tools-filter {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.filter-label {
    font-weight: 500;
    margin-right: 15px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    margin: 0 8px 8px 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

a.filter-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

a.filter-btn:hover {
    background-color: #f8f9fa;
}

/* 工具网格 - 完全无边框设计 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

/* 工具卡片 - 彻底移除所有边框和阴影 */
.tool-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* 工具头部信息 */
.tool-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.tool-icon {
    flex-shrink: 0;
}

.tool-icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
}

.rating-score {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.tool-price {
    background: #e0e7ff;
    color: #5b21b6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
    align-self: flex-start;
}

/* 工具描述 */
.tool-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

/* 工具标签 */
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* 工具操作按钮 */
.tool-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* 统一的按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 150px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #3b82f6;
    transform: translateY(-1px);
}

.tool-link {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.tool-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-title {
        font-size: 32px;
    }

    .tools-description {
        font-size: 16px;
    }

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

    .tool-card {
        padding: 20px;
    }

    .tool-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .tool-price {
        margin-left: 0;
        align-self: center;
    }

    .tool-actions {
        justify-content: center;
    }

    .btn-primary {
        width: auto;
        min-width: 150px;
    }
}