:root {
    --primary-color: #4a90e2;
    --primary-hover-color: #3a7fd2;
    --primary-active-color: #2a6fc2;
    --primary-light-color: #e3f0ff;
    --bg-color: #f8f9fa;
    --panel-bg-color: #ffffff;
    --border-color: #e1e4e8;
    --text-color: #333333;
    --text-light-color: #6c757d;
    --error-color: #d32f2f;
    --success-color: #28a745;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --card-radius: 10px;
    --transition-time: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

h2 {
    margin-bottom : 0
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

/* 工具容器 */
.tools-container {
    max-width: 1200px;
}

/* 分类导航 */
.tools-nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 100;
}

.nav-item {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #1a73e8;
    background: #f0f7ff;
}

.nav-item.active {
    color: #1a73e8;
    background: #f0f7ff;
}

/* 分类区域 */
.tools-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1a73e8;
    border-radius: 2px;
}

.section-desc {
    color: #666;
    margin-bottom: 20px;
    padding-left: 15px;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 工具卡片 */
.tool-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 工具卡片头部 */
.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #e3f0ff;
    width: 100%;
    box-sizing: border-box;
}

.tool-header h2 {
    color: #1a73e8;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1a73e8;
    background-color: #e3f0ff;
}

/* 工具内容 */
.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.tool-content h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.tool-content p {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

/* 特性标签 */
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.feature-tag {
    background: #f0f7ff;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* 工具按钮基础样式 */
.tool-button {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    padding: 8px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

.tool-button:hover {
    background: #1557b0;
}

/* 禁用状态按钮样式 */
button.tool-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

button.tool-button.disabled:hover {
    background: #bbb;
}

/* 开发中标签 */
.soon-tag {
    font-size: 12px;
    padding: 2px 6px;
    background-color: #ff9800;
    border-radius: 4px;
    margin-left: 8px;
    color: white;
    font-weight: normal;
}

/* 新工具卡片 */
.new-tool {
    border: 2px dashed #ddd;
    background: #fafafa;
}

.new-tool .tool-icon {
    background-color: #f5f5f5;
    color: #999;
}

.new-tool h2 {
    color: #666;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .tool-card {
        padding: 0;
    }

    .tool-header {
        padding: 12px;
    }

    .tool-content {
        padding: 12px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }

    .tool-header h2 {
        font-size: 16px;
    }

    .tool-content h2 {
        font-size: 1.1rem;
    }
}

/* 页脚样式 */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light-color);
    font-size: 0.9rem;
}

.footer p:first-child {
    margin-bottom: 5px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .tool-content h2 {
        font-size: 1.3rem;
    }
} 