/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #e8f5e9;
    /* 调整页面背景为柔和的浅绿色 */
    color: #333;
}

/* Header 样式 */
.main-header {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    text-align: center;
    padding: 2rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 0;
}

.header-content p {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

/* 主内容样式 */
.main-content {
    flex: 1;
    padding: 2rem;
    text-align: center;
}

.tools-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2e7d32;
}

/* Tools 样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 每行 3 个卡片 */
    gap: 2rem;
    /* 卡片间距 */
    justify-items: center;
}

.tool-card {
    background-color: white;
    border-radius: 15px;
    /* 增加圆角 */
    padding: 2rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.1);
    /* 更加明显的卡片阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* 悬停时阴影增强 */
}

.tool-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.tool-card p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.85;
}

.tool-icon {
    font-size: 2.5rem;
    color: #4caf50;
}

/* Footer 样式 */
.main-footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.1);
}

.main-footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.main-footer i {
    color: #ff5252;
}

/* 响应式调整，适配小屏幕 */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 中等屏幕每行 2 个卡片 */
        gap: 1.5rem;
        /* 调整间距 */
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 小屏幕每行 2 个卡片 */
        gap: 1.5rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
        /* 超小屏幕每行 1 个卡片 */
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-card h3 {
        font-size: 1.3rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }

    .tool-icon {
        font-size: 2rem;
    }
}