/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #e1e4e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    margin: 1rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 搜索框样式 */
.search-container {
    margin: 1.5rem auto;
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
}

#search {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

#searchBtn {
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchBtn:hover {
    background-color: #1a5276;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tool-section {
    margin-bottom: 3rem;
}

.tool-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.tool-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card ul {
    list-style: none;
}

.tool-card li {
    margin-bottom: 0.8rem;
}

.tool-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.tool-card a:hover {
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

    .header-content {
        padding: 0 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    #searchBtn {
        width: 100%;
    }
}

/* 动画效果 */
.tool-card {
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
} 