/* ========== SuchAs AI - 视觉升级版 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(99, 102, 241, 0.2), 0 10px 10px -5px rgba(99, 102, 241, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
[data-theme="dark"] .header { background: rgba(30, 41, 59, 0.8); }

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon { font-size: 36px; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* 主题切换 */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}
.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    padding-left: 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.search-box button {
    padding: 14px 24px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.search-box button:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 主内容 */
.main { padding: 40px 0; }

/* 广告位 */
.ad-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px dashed var(--border);
    transition: all 0.3s;
}

.ad-section:hover { border-color: var(--primary); }
.ad-label { font-size: 12px; color: var(--text-light); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.ad-content {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

/* 收藏面板 */
.favorites-panel {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.favorites-panel:hover { box-shadow: var(--shadow-lg); }

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.favorites-title { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.favorites-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 8px;
}

.clear-favorites {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.clear-favorites:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.favorites-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.favorites-empty .icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 随机推荐 */
.random-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.random-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 16px;
}

.random-title { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.random-btn {
    padding: 12px 24px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.random-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.random-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.random-tool-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.random-tool-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.random-tool-card .icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--gradient-1);
    box-shadow: var(--shadow);
}

.random-tool-card .name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.random-tool-card .category { font-size: 13px; color: var(--text-light); }

/* 工具对比 */
.compare-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.compare-title { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.compare-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.compare-tool-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius-xl);
    font-size: 14px;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.compare-tool-tag:hover { border-color: var(--primary); }
.compare-tool-tag .remove {
    cursor: pointer;
    color: var(--text-light);
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.compare-tool-tag .remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.add-compare-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.add-compare-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.compare-table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }

.compare-table th, .compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg);
}

.compare-table tr:hover td { background: var(--bg); }

.compare-table .tool-name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.compare-table .tool-name .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.compare-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 500;
}

.compare-badge.free { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.compare-badge.paid { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.compare-badge.freemium { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.compare-badge.experimental { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* 价格筛选 */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-btn .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
}

.filter-btn.active .count { background: rgba(255, 255, 255, 0.2); }

/* 分类标签 */
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 12px 22px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 工具卡片 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tool-card:hover::before { opacity: 1; }

.tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--gradient-1);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.tool-card:hover .tool-icon { transform: scale(1.1) rotate(5deg); }

.tool-icon.image { background: var(--gradient-2); }
.tool-icon.video { background: var(--gradient-3); }
.tool-icon.code { background: var(--gradient-4); }
.tool-icon.audio { background: var(--gradient-5); }
.tool-icon.productivity { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.tool-info { flex: 1; }
.tool-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }

.tool-info .category-tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    display: inline-block;
}

.tool-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: var(--radius);
    color: var(--text-light);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.tool-price {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 收藏按钮 */
.favorite-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.favorite-btn:hover {
    transform: scale(1.15) rotate(15deg);
    border-color: #f59e0b;
}

.favorite-btn.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    animation: starPop 0.3s ease-out;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 按钮 */
.visit-btn {
    padding: 10px 18px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 无结果 */
.no-result {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 18px;
}

.no-result .icon { font-size: 64px; margin-bottom: 20px; opacity: 0.5; }

/* AI 资讯 */
.news-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.news-title { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.news-list { display: flex; flex-direction: column; gap: 12px; }

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.news-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}

.news-date { font-size: 12px; color: var(--text-light); white-space: nowrap; padding-top: }
.news-content { 4px; flex: 1; }

.news-tag {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 500;
}

.news-title-text { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text); }

/* 快捷键提示 */
.shortcuts-hint {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 40px;
    border: 1px solid var(--border);
}

.shortcuts-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shortcuts-list { display: flex; gap: 24px; flex-wrap: wrap; }

.shortcut-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-light); }

.shortcut-key {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 22px; font-weight: 600; }

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: #fee2e2; color: #ef4444; }

.modal-search { margin-bottom: 20px; }

.modal-search input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s;
}

.modal-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modal-tool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.modal-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.modal-tool-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.modal-tool-item .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.modal-tool-item .name { font-weight: 500; font-size: 14px; }
.modal-tool-item.selected { border-color: var(--primary); background: rgba(99, 102, 241, 0.08); }

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border);
}

.skeleton-icon { width: 60px; height: 60px; border-radius: var(--radius); }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton-text:last-child { width: 80%; }

/* 页脚 */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.footer p { font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 16px; }
    .search-box { max-width: 100%; width: 100%; }
    .tools-grid { grid-template-columns: 1fr; }
    .modal-tool-list { grid-template-columns: 1fr; }
    .filter-section { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
    .filter-btn { flex-shrink: 0; }
    .shortcuts-list { flex-direction: column; gap: 12px; }
    .random-header { flex-direction: column; align-items: flex-start; }
    .favorites-grid { grid-template-columns: 1fr; }
    .random-tools { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .tool-card { padding: 20px; }
}
