/* 主要样式文件 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #7c3aed;
    --text-color: #1f2937;
    --bg-color: #f9fafb;
}

/* 全局样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.3) 100%);
}

/* Bento Grid 布局 */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.bento-item {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 工具卡片样式 */
.tool-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .container {
        padding: 1rem;
    }
}

/* 动效样式 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具页面特定样式 */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-input {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
}

.tool-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tool-button:hover {
    background-color: #1d4ed8;
} 