@charset "UTF-8";
/**
 * Tools Plugin Common Styles
 * 工具插件公共样式文件
 * @version 1.0.0
 */

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0.5rem 1rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem !important;
}

.breadcrumb-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #FF6A00;
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A" !important;
    padding-left: 0 !important;
    padding-right: 0.5rem !important;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 300;
    display: inline-block;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 400;
    padding-left: 0.5rem;
}

/* ========== 工具页面容器 ========== */
.tool-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tool-page-card {
    background: #fff;
    border-radius: 2px;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 1.5rem;
}

.tool-page-card .card-body {
    padding: 1.5rem;
}

.tool-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* ========== 输入组 ========== */
.tool-input-group {
    margin-bottom: 1.25rem;
}

.tool-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.tool-input-group input,
.tool-input-group textarea,
.tool-input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 2px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.tool-input-group input:focus,
.tool-input-group textarea:focus,
.tool-input-group select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.tool-input-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* ========== 按钮组 ========== */
.tool-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tool-btn-primary {
    background: #007bff;
    color: white;
}

.tool-btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.tool-btn-secondary {
    background: #6c757d;
    color: white;
}

.tool-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.tool-btn-success {
    background: #28a745;
    color: white;
}

.tool-btn-success:hover:not(:disabled) {
    background: #218838;
}

.tool-btn-warning {
    background: #ffc107;
    color: #212529;
}

.tool-btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

.tool-btn-danger {
    background: #dc3545;
    color: white;
}

.tool-btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    color: #fff;
}

.tool-btn-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* ========== 结果框 ========== */
.tool-result-box {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 2px;
    border: 1px solid #e9ecef;
    margin-top: 1.5rem;
    min-height: 120px;
}

.tool-result-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.tool-result-item:last-child {
    border-bottom: none;
}

.tool-result-label {
    font-weight: 600;
    color: #495057;
    display: inline-block;
    width: 140px;
}

.tool-result-value {
    color: #212529;
}

/* ========== 输入行布局 ========== */
.tool-input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tool-input-row .tool-input-group {
    flex: 1;
    margin-bottom: 0;
}

/* ========== 章节标题 ========== */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

/* ========== 信息说明区域 ========== */
.tool-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.tool-info-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.tool-info-section p {
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.tool-info-section ul {
    line-height: 1.8;
    color: #6c757d;
    padding-left: 2rem;
}

.tool-info-section li {
    margin-bottom: 0.5rem;
}

/* ========== 工具首页样式 ========== */
.tools-container {
    padding: 2rem 2rem 1.5rem 2rem;
}

.tools-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tools-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.tools-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* 分类标签导航 */
.tools-categories {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    overflow-y: hidden;
}

.category-tab {
    padding: 0.5rem 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.category-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 热门工具标签特殊样式 */
.category-tab-hot {
    border-color: #FF6A00;
    color: #FF6A00;
}

.category-tab-hot:hover {
    background: #fff5f0;
    border-color: #FF6A00;
    color: #FF6A00;
}

.category-tab-hot.active {
    background: #FF6A00;
    border-color: #FF6A00;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* 搜索框伪装成分类样式 */
.category-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.category-search-input {
    padding: 0.5rem 2rem 0.5rem 2.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
    width: 150px;
    box-sizing: border-box;
}

.category-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.category-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.category-search-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    color: #6c757d;
    pointer-events: none;
}

.category-search-wrapper .search-clear {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #6c757d;
}

.category-search-wrapper .search-clear:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* 无结果消息 */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-results-message svg {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results-message p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin: 0.5rem 0;
}

.no-results-message small {
    font-size: 0.875rem;
    color: #adb5bd;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.tool-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

/* 热门标签 */
.hot-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C42 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0 4px 0 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.3);
    z-index: 1;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    border-color: #007bff;
}

.tool-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.tool-card-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}

.tool-card-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #666;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 统计信息 ========== */
.tool-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-stat-item {
    text-align: center;
}

.tool-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.tool-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ========== 转换区域 ========== */
.converter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.converter-section:last-of-type {
    border-bottom: none;
}

/* ========== 高亮结果 ========== */
.result-item-highlight {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.result-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ========== 工具推荐栏样式 ========== */
.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.view-all-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: #0056b3;
}

.recommendation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.recommendation-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.recommendation-item:hover {
    border-color: #007bff;
    color: #007bff;
    background: #fff;
}

.recommendation-item-title {
    white-space: nowrap;
}

.recommendation-item-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ff4757;
    background: #ffe5e8;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .recommendation-list {
        gap: 0.5rem;
    }
    
    .recommendation-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ========== 分页组件样式 ========== */
.tools-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.pagination-info span {
    font-weight: 600;
}

.pagination-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tools-pagination {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
    
    .pagination-count {
        display: none;
    }
}

