/**
 * tools-page.css - 咖图工具箱页面样式
 * 浅色系主题设计，与网站整体风格一致
 */

/* ===========================
   页面整体布局 - 浅色系
   =========================== */
.main-content.tools-page {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
}

.tools-page {
    padding: 24px 32px;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--color-bg-page);
    min-height: calc(100vh - 60px);
}

/* ===========================
   分类标题栏 - 上下结构
   =========================== */
.section-header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    gap: 12px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-group i {
    font-size: 22px;
    color: var(--color-primary);
}

.section-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.section-count {
    font-size: 13px;
    color: var(--color-text-tertiary);
    background: var(--color-bg-elevated);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.section-workspace-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-100);
    transition: all 0.3s ease;
}

.section-workspace-link:hover {
    background: var(--color-primary-100);
    border-color: var(--color-primary-200);
}

/* ===========================
   工具卡片网格 - 6列布局
   =========================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ===========================
   工具卡片 - 浅色系
   =========================== */
.tool-card {
    position: relative;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

/* 工具徽章 - 右上角 */
.tool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-new {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
}

.badge-pro {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
}

.badge-fun {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
}

.badge-ecom {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #fff;
}

.badge-dual {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
}

.badge-portrait {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    color: #fff;
}

.badge-process {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
}

.badge-office {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
}

.badge-art {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    color: #fff;
}

.badge-creative {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #fff;
}

/* 工具图标 - 左上角 */
.tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid var(--color-primary-200);
}

.tool-icon i {
    font-size: 18px;
    color: var(--color-primary);
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-200) 100%);
}

/* 工具标题 */
.tool-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    padding-right: 50px;
}

/* 工具描述 */
.tool-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 工具底部标签 */
.tool-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-tertiary);
    background: var(--color-bg-elevated);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* ===========================
   响应式设计
   =========================== */
@media (max-width: 1600px) {
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-page {
        padding: 16px;
    }

    .section-header-bar {
        padding: 16px;
    }

    .section-name {
        font-size: 18px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 14px;
    }

    .tool-title {
        font-size: 14px;
    }

    .tool-desc {
        font-size: 11px;
    }
}

/* ===========================
   动画效果
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.02s; }
.tool-card:nth-child(2) { animation-delay: 0.04s; }
.tool-card:nth-child(3) { animation-delay: 0.06s; }
.tool-card:nth-child(4) { animation-delay: 0.08s; }
.tool-card:nth-child(5) { animation-delay: 0.10s; }
.tool-card:nth-child(6) { animation-delay: 0.12s; }
.tool-card:nth-child(7) { animation-delay: 0.14s; }
.tool-card:nth-child(8) { animation-delay: 0.16s; }
.tool-card:nth-child(9) { animation-delay: 0.18s; }
.tool-card:nth-child(10) { animation-delay: 0.20s; }
.tool-card:nth-child(11) { animation-delay: 0.22s; }
.tool-card:nth-child(12) { animation-delay: 0.24s; }
.tool-card:nth-child(13) { animation-delay: 0.26s; }
.tool-card:nth-child(14) { animation-delay: 0.28s; }
.tool-card:nth-child(15) { animation-delay: 0.30s; }
.tool-card:nth-child(16) { animation-delay: 0.32s; }
.tool-card:nth-child(17) { animation-delay: 0.34s; }
.tool-card:nth-child(18) { animation-delay: 0.36s; }
.tool-card:nth-child(19) { animation-delay: 0.38s; }
.tool-card:nth-child(20) { animation-delay: 0.40s; }
.tool-card:nth-child(21) { animation-delay: 0.42s; }
.tool-card:nth-child(22) { animation-delay: 0.44s; }
.tool-card:nth-child(23) { animation-delay: 0.46s; }
.tool-card:nth-child(24) { animation-delay: 0.48s; }
.tool-card:nth-child(25) { animation-delay: 0.50s; }
.tool-card:nth-child(26) { animation-delay: 0.52s; }
.tool-card:nth-child(27) { animation-delay: 0.54s; }
.tool-card:nth-child(28) { animation-delay: 0.56s; }
.tool-card:nth-child(29) { animation-delay: 0.58s; }
.tool-card:nth-child(30) { animation-delay: 0.60s; }
.tool-card:nth-child(31) { animation-delay: 0.62s; }
.tool-card:nth-child(32) { animation-delay: 0.64s; }
.tool-card:nth-child(33) { animation-delay: 0.66s; }
.tool-card:nth-child(34) { animation-delay: 0.68s; }
.tool-card:nth-child(35) { animation-delay: 0.70s; }
.tool-card:nth-child(36) { animation-delay: 0.72s; }
.tool-card:nth-child(37) { animation-delay: 0.74s; }
.tool-card:nth-child(38) { animation-delay: 0.76s; }
.tool-card:nth-child(39) { animation-delay: 0.78s; }
.tool-card:nth-child(40) { animation-delay: 0.80s; }
