/* 交通标志大全样式 - 所有样式都在 .tool-page 作用域下 */

/* 标志展示网格 */
.tool-page .signs-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 标志卡片 */
.tool-page .sign-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-page .sign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 标志图标容器 */
.tool-page .sign-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Font Awesome 图标支持 */
.tool-page .sign-icon i {
    font-size: 32px;
}

/* 标志名称 */
.tool-page .sign-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
    text-align: center;
}

/* 标志描述 */
.tool-page .sign-description {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 分类标签 */
.tool-page .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tool-page .category-tab {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tool-page .category-tab:hover {
    background-color: #e8e8e8;
}

.tool-page .category-tab.active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 搜索区域 */
.tool-page .search-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-page .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.tool-page .search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    position: relative;
}

.tool-page .search-container .form-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-page .search-container .form-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.tool-page .search-container .form-input::placeholder {
    color: #aaa;
}

/* 按钮样式 */
.tool-page .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tool-page .btn-primary {
    background-color: #4a90e2;
    color: white;
}

.tool-page .btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-page .btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

.tool-page .btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 使用 Font Awesome 图标替代 Emoji */
.tool-page .btn-primary::before {
    content: "\f002"; /* Font Awesome search icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.tool-page .btn-secondary::before {
    content: "\f00d"; /* Font Awesome times icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

/* 网格布局 */
.tool-page .rules-grid,
.tool-page .safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-page .rule-item,
.tool-page .safety-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-page .rule-item h4,
.tool-page .safety-item h4 {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-page .rule-item h4 i,
.tool-page .safety-item h4 i {
    color: #4a90e2;
}

.tool-page .rule-item ul {
    padding-left: 20px;
    margin-bottom: 0;
}

/* 安全图标 */
.tool-page .safety-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-page .safety-icon i {
    font-size: 32px;
}

/* FAQ 列表 */
.tool-page .faq-list {
    margin-top: 20px;
}

.tool-page .faq-item {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.tool-page .faq-item h4 {
    margin-top: 0;
    color: #333;
}

.tool-page .faq-item p {
    margin-bottom: 0;
}

/* 章节标题 */
.tool-page .section-title {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #333;
}

/* 无结果提示 */
.tool-page .no-results {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-page .signs-display {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .tool-page .rules-grid,
    .tool-page .safety-grid {
        grid-template-columns: 1fr;
    }

    .tool-page .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .tool-page .search-container {
        flex-direction: column;
    }

    .tool-page .search-container .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tool-page .signs-display {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .tool-page .sign-card {
        padding: 10px;
    }

    .tool-page .sign-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .tool-page .sign-name {
        font-size: 14px;
    }

    .tool-page .sign-description {
        font-size: 12px;
    }
}
