/* 年龄计算器专题页 */

.age-form-main {
    max-width: 400px;
}

/* 年龄结果卡片 */
.age-main-result {
    margin-top: 1.5rem;
}

.age-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.age-card {
    text-align: center;
    padding: 1.2rem 0.5rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
}

.age-card-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.age-card-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: #2563eb;
    line-height: 1.2;
}

.age-card-unit {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}

.age-detail {
    padding: 1rem;
    background: #f0f4ff;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

/* 子工具入口 */
.sub-tools-title {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.6rem;
}

.sub-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-tool-link {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sub-tool-link:hover {
    background: #dde8ff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .age-cards {
        grid-template-columns: 1fr 1fr;
    }
    .age-cards .age-card:last-child {
        grid-column: 1 / -1;
    }
}
