/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.header p {
    color: #6b7280;
    font-size: 16px;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    gap: 8px;
}

.tab-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    background-color: #e5e7eb;
}

.tab-btn.active {
    background-color: #3b82f6;
    color: white;
}

.tab-btn .icon {
    font-size: 16px;
}

/* 内容区域 */
.content {
    width: 100%;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 工具网格 */
.section {
    margin-bottom: 32px;
}

.section h2 {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

/* 工具卡片 */
.tool-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.tool-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.tool-icon .icon {
    font-size: 20px;
}

.tool-info {
    flex-grow: 1;
}

.tool-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.tool-info p {
    font-size: 14px;
    color: #6b7280;
}

.tool-arrow {
    color: #d1d5db;
    font-size: 20px;
    margin-left: 8px;
}

/* 背景颜色类 */
.bg-green {
    background-color: #dcfce7;
}

.bg-orange {
    background-color: #fed7aa;
}

.bg-pink {
    background-color: #fce7f3;
}

.bg-blue {
    background-color: #dbeafe;
}

.bg-purple {
    background-color: #e9d5ff;
}

.bg-red {
    background-color: #fecaca;
}

.bg-yellow {
    background-color: #fef3c7;
}

/* 设置面板 */
.settings-panel {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.setting-item select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 12px;
    }

    .header h1 {
        font-size: 28px;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

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