/* 鲲穹AI工具箱 - 主样式文件 */

/* CSS变量 */
:root {
    --primary-color: #1e88e5;
    --primary-hover: #1e88e5;
    --secondary-color: #6366f1;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    body > .header {
        padding-left: 0;
        padding-right: 0;
    }
}

body {
    /* ... */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    width: 240px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-btn,
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header-login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-login-btn:hover {
    background: var(--primary-hover);
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
}

.user-avatar:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar span#userName {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 180px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.menu-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-menu-item.logout-item {
    color: var(--error-color);
}

.user-menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 24px 0;
    min-height: 90vh; /* 至少占据 90% 的视窗高度，确保底部完全被挤到第二屏 */
}

/* 页面容器 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 90vh; /* 确保内容至少占据 90% 视窗高度，将底部完全挤下去 */
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 首页英雄区域 */
.hero-section {
    text-align: center;
    padding: 40px 20px 32px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 工具分类区块 */
.tool-category {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    font-size: 22px;
}

.view-more {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-more:hover {
    color: var(--primary-color);
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 0;
}

/* 工具卡片样式 - 横向布局 */
.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.tool-card .tool-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    margin-bottom: 0;
}

.tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-card .tool-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0;
}

.tool-card .tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.tool-link {
    display: none;
}

/* 工具容器 */
.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
}

/* 表单样式 */
.tool-form {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--error-color);
}

.form-textarea,
.form-select,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-textarea:focus,
.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-actions {
    margin-top: 24px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 结果容器 */
.result-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.result-header {
    margin-bottom: 16px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.placeholder-text {
    font-size: 14px;
}

.result-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.error-text {
    color: var(--error-color);
    font-size: 14px;
}

.result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.result-image-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;  /* ✅ 改为 visible，让操作按钮可以显示出来 */
    background: var(--bg-tertiary);
}

.result-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);  /* ✅ 改为半透明黑色背景，让按钮更清晰可见 */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.result-image-item:hover .image-actions {
    opacity: 1;
}

.image-action-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.image-action-btn:hover {
    background: white;
}

/* 底部样式 */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-brand-section {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 16px;
        display: block;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .footer-section li {
        margin-bottom: 4px;
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .contact-list li {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 16px;
    }
    
    .copyright-links {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .separator {
        display: none;
    }
}

.footer-brand-section {
    max-width: 300px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-icon img {
    width: 20px;
    height: 20px;
}

.footer-section h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon-img {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.copyright-links {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.copyright-links a {
    color: #9ca3af;
}

.copyright-links a:hover {
    color: white;
}

.separator {
    color: #4b5563;
}

/* 响应式 */
@media (max-width: 1024px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    
    .nav.show {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-md);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--bg-tertiary);
    }
    
    .nav-item-wrapper {
        width: 100%;
    }
    
    .search-box {
        display: none;
    }
    
    .header-search-btn,
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .header-login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    display: block;
}

.header-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}


/* 平台选择器样式 */
.platform-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-danger .stat-value {
    color: var(--error-color);
}

.stat-warning .stat-value {
    color: var(--warning-color);
}

.stat-success .stat-value {
    color: var(--success-color);
    cursor: pointer;
}

.result-content {
    margin-top: 20px;
}
.platform-option input[type="radio"] {
    display: none;
}

.result-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.highlighted-text {
    padding: 16px;
}
.platform-label {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.highlight-danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
.platform-option input[type="radio"]:checked + .platform-label {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.highlight-warning {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.platform-label:hover {
    border-color: var(--primary-color);
}


/* 输入类型切换标签 */
.input-type-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.issue-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.issue-danger {
    border-left-color: var(--error-color);
}

.issue-warning {
    border-left-color: var(--warning-color);
}

.issue-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.issue-level {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.issue-danger .issue-level {
    background: #fee2e2;
    color: #dc2626;
}

.issue-warning .issue-level {
    background: #fef3c7;
    color: #d97706;
}

.issue-type {
    font-size: 12px;
    color: var(--text-light);
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.issue-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.issue-keyword {
    font-weight: 600;
    color: var(--text-primary);
}

.issue-position {
    font-size: 12px;
    color: var(--text-light);
}

.issue-suggestion {
    font-size: 13px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.summary-label {
    font-size: 13px;
    color: var(--text-light);
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.risk-level-high {
    color: var(--error-color);
}

.risk-level-medium {
    color: var(--warning-color);
}

.risk-level-low {
    color: #f59e0b;
}

.risk-level-safe {
    color: var(--success-color);
}
}

/* 首页工具分类响应式适配 */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 16px;
    }
    
    .hero-section {
        padding: 24px 16px 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .tool-category {
        margin-bottom: 32px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .category-icon {
        font-size: 20px;
    }
    
    .view-more {
        font-size: 13px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 10px;
    }
    
    .tool-card {
        padding: 12px 14px;
    }
    
    .tool-card .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tool-card .tool-title {
        font-size: 14px;
    }
    
    .tool-card .tool-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 0;
    }
}
