* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-content {
    flex: 1;
    /* 关键：自动撑开，把 footer 挤到底部 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.container {
    /* background-color: #e4edf5; */
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    /* 关键：撑开剩余空间 */
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #4a6cf7;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    font-size: 1.1rem;
}

.tools {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    font-size: 2.2rem;
    color: #4a6cf7;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-content {
    flex: 1;
    text-align: left;
}

.tool-content h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.tool-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

footer {
    /* background: #f8f9fa; */
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    /* border-top: 1px solid #e0e0e0; */
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}