/* CSS Document */

/* 基于 index.html 的样式，只写增量 */
:root {
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --bg-base: #f7f8fc;
    --bg-card: #ffffff;
    --bg-soft: #eef2ff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-card: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px -8px rgba(15,23,42,.08);
}
body {
    background: var(--bg-base);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* 主区域 */
.tools-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.tools-page-header {
    margin-bottom: 2.5rem;
}
.back-link {
    display: inline-flex; align-items: center;
    color: var(--text-sub); text-decoration: none;
    font-size: .88rem; margin-bottom: 1rem;
}
.back-link:hover { color: var(--brand-1); }
.tools-page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--brand-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
}
.tools-page-header p {
    color: var(--text-sub);
    margin: 0;
    font-size: 1rem;
}

.tools-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* 分页 */
.pagination-wrap {
    display: flex; justify-content: center;
    margin-top: 3rem;
}
.pagination-custom {
    display: flex; gap: 6px; list-style: none;
    padding: 0; margin: 0;
}
.pagination-custom .page-item .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .8rem;
    border-radius: 10px; background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-sub); text-decoration: none;
    font-size: .88rem; font-weight: 500;
    transition: all .15s ease;
}
.pagination-custom .page-item .page-link:hover {
    border-color: var(--brand-1); color: var(--brand-1);
}
.pagination-custom .page-item.active .page-link {
    background: var(--brand-1); color: #fff; border-color: var(--brand-1);
}
.pagination-custom .page-item.disabled .page-link {
    opacity: .4; pointer-events: none;
}

/* 空 */
.empty-tip, .no-result {
    text-align: center; padding: 4rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-tip i, .no-result i {
    font-size: 2.5rem; margin-bottom: 1rem;
    opacity: .4; color: var(--brand-1);
}
